Understanding Primitive Data Types in Javascript


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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments