JavaScript data type (symbol)
One, the original data type or basic data type 6 kinds
1,undefined (1, Declaration unassigned, 2, function has no return value)
2,null (empty, not present)
3,number (Numbers, decimals, and integers)
4,boolean (boolean value, True,false)
5,string (string, single or double-cited)
The 6,ES6 symbol primitive data type produces a unique value through the symbol (), which can be used to transmit the parameter symbol (' DD '), the String class, which does not affect its value, as a property value
This was a mistake originally implemented by JavaScript, which was later ECMAScript. Today we can explain that NULL is a placeholder for an object that does not exist, but it is important to be aware of this feature when actually coding
ECMAScript that undefined are derived from null, so they are defined as equal. But what if, in some cases, we must differentiate between these two values? You can use the following two methods.
II. reference data types or complex data types
The 1,object object object is an unordered set of properties, where the "properties" can be basic values, objects, or functions
2,array Array
3,function function
5,object is the parent of all reference types
Differences between the original data type and the reference data type:
Raw data type
1, simple data segment
2, stored value (stack)
Reference data type
1, there are multiple values that make up an object
2, store the address (heap)
JS Beginner Entry