Skip to main content
0:01est. 2 min

Chapter 20- Primitive Types

Notes

There are 6 primitive types in javascript. A primitive type is type of data that represents a single value , ie not an object
- undefined : It represents lack of existence (you shouldn't set variable to this)
- null : It represents lack of existence (you can set a variable to this)
- boolean : true or false
- number : Floating point number (there's always some decimals). Unlike other programming languages, there's only one number type ….and it can make math weird.
- string : a sequence of characters both single and double quotes can be used.
- symbol : used in ES6 (the next version of javascript)