super() keyword
The super keyword is used to access and call functions on an object's parent.
The super.prop
and super[expr]
expressions are valid in any method definition in both classes and object literals.
When used in a constructor, the super
keyword appears alone and must be used before the this
keyword is used. The super
keyword can also be used to call functions on a parent object.
Last updated