Primitive Values — Primitive values are numbers and strings, among other things. All primitive values have something in common. There are 7 primitive data types: Undefined, Null, Boolean, Number, String, Symbol, and BigInts. ● Undefined (undefined), used for unintentionally missing values.
● Null (null), used for intentionally missing values.
● Booleans (true and false), used…