- undefined — indicates that value is not provided, so the type cannot be identified
- number — a type of variable stores a whole or decimal number
- text —a type of variable stores a string value
- boolean — type of variable stores
The primitive types are defined as raw types that are the basic building blocks of a programming language.
Empty variable or undefined variables have
undefined value. An
undefined value is of the
let name2 = undefined console.log(name1)
Try to run the code above.