Variables and Data Types
JavaScript has several data types including:
Primitive Types
- String
- Number
- Boolean
- Undefined
- Null
Example
let name = "John";
let age = 30;
let isStudent = true;
Understanding JavaScript variables and data types
JavaScript has several data types including:
let name = "John";
let age = 30;
let isStudent = true;