Skip to content

Instantly share code, notes, and snippets.

@Storyyeller
Created December 29, 2017 03:57
Show Gist options
  • Save Storyyeller/ea8337ab2b9dd5663eceb2ad6b5990ae to your computer and use it in GitHub Desktop.
Save Storyyeller/ea8337ab2b9dd5663eceb2ad6b5990ae to your computer and use it in GitHub Desktop.
class Base {
foo() {return 'foo in Base';}
static bar() {return 'bar in Base';}
}
class Child extends Base {
foo() {return super.foo();}
static bar() {return super.bar();}
}
const obj = new Child;
console.log(obj.foo()); // foo in Base
console.log(Child.bar()); // bar in Base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment