What is the purpose of the super keyword inside a class constructor?

JavaScript Associate Easy

JavaScript Associate — Easy

What is the purpose of the super keyword inside a class constructor?

Key points

  • Super keyword invokes the parent class constructor
  • Invocation must precede 'this' access in derived classes
  • Incorrect options confuse super with static method references or instance creation

Ready to go further?

Related questions