Actual behavior:
I write two classes in the playground and when I run the code I get an error in the console which land on the extend function.
class Snake extends Greeter {
constructor() {
super();
}
skip(){}
}
class Greeter {
constructor() {}
skip(){
console.log('nothig to skip');
this.preEnd();
console.log('so just ended');
}
preEnd(){}
}
Expected behavior:
The order of the class should not matter.