Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
so 41080980 created by sean9999 - https://repl.it/EmmE/1
class First {
constructor() {
this.loc = '1';
}
test() {
console.log('first', this.loc);
}
}
class Second extends First {
constructor() {
super();
this.loc = '2';
}
test() {
console.log('second',this.loc);
super.test();
}
}
class Third extends Second {
constructor() {
super();
this.loc = '3';
}
test() {
console.log('third',this.loc);
super.test();
}
}
let t = new Third();
t.test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.