Skip to content

Instantly share code, notes, and snippets.

@wingleungchoi
Created January 3, 2015 07:04
Show Gist options
  • Save wingleungchoi/957b76f3905b181cc836 to your computer and use it in GitHub Desktop.
Save wingleungchoi/957b76f3905b181cc836 to your computer and use it in GitHub Desktop.
Six basic types of values in JavaScript
Six basic types of values in JavaScript: numbers, strings, Booleans, objects, functions, and undefined values.
JavaScript is a very free language. It tries to converse the type of a value to another type. There are pros and cons. Pros: more flexible a code can be. Cons: more errors a code can have.
As a beginner, prefer === rather than ==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment