Execution of the new keyword

1. will apply for a memory space to store objects,

2.this keywords pointing to a heavier storage space within the object, (this represents the current object is created),

3. Add properties and methods to an object through the this keyword,

4 will return this variable to the received external

 

Guess you like

Origin www.cnblogs.com/lljun/p/11374664.html