JavaScript Data Types
Data types describe the kind of value stored in a variable.
Primitive Data Types
JavaScript has several primitive data types:
- String
- Number
- BigInt
- Boolean
- Undefined
- Null
- Symbol
Example
let name = "Alex";
let age = 21;
let isStudent = true;
console.log(typeof name);
console.log(typeof age);
console.log(typeof isStudent);