How does the new operator work in JavaScript?
The new operator uses the internal [[Construct]] method, and it basically does the following: Initializes a new native object Sets the internal [[Prototype]] of this object, pointing to the Function prototype
View Details