Why do objects created from a subclass that extends another class stop working after a constructor method is declared?
class test{
}
class test2 extends test {
constructor(){ //this makes the alert(2); not working
}
}
alert(1); //this works
var e = new test2(); //nothing after this works
alert(2); //this doesn't run