Primitive Data Types:
Primitive data types are also known as in-build data types which are immutable and passed by value. There are six primitive data types as follows:
It represents numeric values, such as integers or floating-point numbers.
let age = 23;
It represents sequences of characters.
It represents sequences of characters.
It represents either true or false.
let boolValue =false;
It represents absence of value.
let nullValue = null;
It represents an uninitialized variable or absence of value.
let undefinedValue = undefined;
It repensents a unique identifier.
let syb = Symbol("unique");