In a derived class, if you omit the constructor, JavaScript automatically calls super with _______.

  • Arguments of the derived class
  • Undefined
  • nan
  • Arguments of the parent class
If the derived class constructor is omitted, JavaScript implicitly adds one, calling super() with undefined as arguments. This ensures the parent class constructor is invoked.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *