JavaScript Class super
JavaScript Class super
The super keyword is used for calling the constructor of its parent class and to access its properties and methods. This phenomenon happens in inheritance. It is useful for code reusability.
Syntax:-
Its syntax are:-
- super(arguments) i.e,will call parent constructor
- super.parentMethod(arguments) i.e, will call parent methods