Value Types and Reference Types
Value Types
In JavaScript, a value type is also referred to as a primitive type. These are the most basic data types in the language and include:
String
Number
Boolean
Null
Undefined
Symbol (added in ES6)
When a primitive value is assigned to...
kiprotichdominic.com3 min read