JavaScript has six primitive data types: string, number, boolean, null, undefined, and symbol.
Source Code
let name = "John"; // string
let age = 25; // number
let isAdult = true; // boolean
let location = null; // null
let job; // undefined
JavaScript has six primitive data types: string, number, boolean, null, undefined, and symbol.
let name = "John"; // string
let age = 25; // number
let isAdult = true; // boolean
let location = null; // null
let job; // undefined