Can you still?

What's the output?

class Bird {
  constructor() {
    console.log("I'm a bird. 馃Β");
  }
}

class Flamingo extends Bird {
  constructor() {
    console.log("I'm pink. 馃尭");
    super();
  }
}

const pet = new Flamingo();

You missed this one before

We create the variable pet which is an instance of the Flamingo class. When we instantiate this instance, the constructor on Flamingo gets called. First, "I'm pink. 馃尭" gets logged, after which we call super(). super() calls the constructor of the parent class, Bird. The constructor in Bird gets called, and logs "I'm a bird. 馃Β".

Question 142 路 see the original (opens in a new tab)