Need help with This JavaScript question

If we want an object to inherit from another object, the super() method : 1- should precede the constructor function. 2- should follow the constructor function. 3- should be written anywhere inside the class. 4- should be ignored as the object will automatically inherit from the parent using the extend keyword Which one is the right answer?

This is the general shape when using super. You must use super before the this keyword

class x extends y {
   constructor () {
      super()
   }
}

Documentation: