See the Mozilla Developer Network article on JavaScript data types.
See W3schools.com JavaScript data types article.
- Primitive types
- Boolean: true or false
- Null: you can set a variable to null to get rid of its value
- Undefined: the value of a variable which contains no value
- Number: numbers can be written with or without a decimal point; exponential representation can also be used (5e3 is 5000, 5e-3 is .005)
- String: a series of characters; string literals are contained within quotes; the quotes can be either single or double quotes
- Symbol: new in ES6; symbols are ubnique, immutable primitives that can be used as a key for a property
- Non-primitive type
- Object: a collection of properties and their values; the properties can include functions
Note: Arrays, Functions, Dates, etc. are objects.