Professional Documents
Culture Documents
Add (2, 5) // 7 Add (2) (5) // 7: Function Add (A) (Var A A Return Function (B) (Return A+b ) )
Add (2, 5) // 7 Add (2) (5) // 7: Function Add (A) (Var A A Return Function (B) (Return A+b ) )
bar
i)
A new instance of an object is created and its prototype (exposed via the
__proto__ property) is set to the prototype property of the constructor function.
ii) The constructor function is invoked with the newly created object bound to the
this property.
iii) If the function does not return a value, this is returned implicitly.