...

/

Object Prototype Extensions and Super Calls

Object Prototype Extensions and Super Calls

get and set the prototype of an object, using the 'super' keyword to make code more concise

The Object API has been extended with two methods to get and set the prototype of an object:

  • Object.getPrototypeOf(o) returns the
...