Udemy/JavaScript:Understanding the weird part

The 'new' keyword

렛츠기릿 2019. 3. 8. 10:10

Creates an object out of thin air

Assigns the value of 'this' to be that object

Adds 'return this' to the end of the function

Creates a link(which we can access as _proto_) between the object created and the prototype property of the constructor function


저작자표시 (새창열림)