JS data type of study notes

type of data
The original value -> stack
Number String Boolean undefined (variable declarations unassigned) null (placeholder)
Reference value -> heap
Array Object function ...date RegExp
 
arr = [1, 3];
arr1 = [1, 2];
Wherein [1, 3] and [1,2] are two different variables
 
 Note: images from a free crossing JS curriculum Screenshot

Guess you like

Origin www.cnblogs.com/seveinn/p/11801589.html