In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods. There are 7 primitive data types: string, number, bigint, boolean, undefined, symbol, and null.
Read moreWhat’s the difference between primitive type and object?
Primitive values can be stored in variables directly. Objects, on the other hand, are stored as references . A variable that has been assigned an object does not store that object directly, it stores the memory address of the location that the object exists at.
Read more