1:ECMAScript contains 2 different data types, base numeric types, and reference numeric types. The basic data types are simple data segments, and reference types refer to objects that may consist of multiple values.
1.1: Common basic types: undefined,null,boolean,number,string
1.2: The value of the reference type is the object that is saved in memory. Unlike other languages, JavaScript does not allow direct access to the in-memory location, which means that the object's memory space cannot be directly manipulated, and then
When manipulating an object, it is actually a reference to the action object instead of manipulating the actual object.
2: Copy Variable value
2.1:eg:var numa=5;
var Numb=numa;
NUM1 re-copies a copy to the NUM2 variable, 2 are independent of each other
2.2: Reference type replication
Var obja=new object ();
Obja.name= ' Bloger ';
var Objb=obja;
Both Obja and OBJB point to the same instance, and they refer to the same object in the heap
JavaScript notes-Basic types and reference types