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
'Udemy > JavaScript:Understanding the weird part' 카테고리의 다른 글
The Scope Chain (0) | 2019.04.15 |
---|---|
closure and keyword 'this' (0) | 2019.03.07 |
Object-Oriented Javascript and Prototypal Inheritance (0) | 2019.03.04 |
Objects and Functions (0) | 2019.02.24 |
Types and Operators (0) | 2019.02.23 |