Javascript Programming Basics. Difference between Primitive values and Reference values ? JavaScript has 6 primitive data types: String , Number , Boolean , Null , Undefined , Symbol. A String object wraps around a string primitive. All primitives are immutable. Primitive Values Reference Values Values that are stored on stack Values that are stored on heap. Values are stored directly to the location that variables accessing Values are stored in variable location is a pointer to a location in memory where the objects is stored. Undefined, null, Number, Boolean and string objects It's values, they have no properties. Objects are aggregation of properties
It's All about Latest Web Technology, Data Science, ML and AI