Created
February 15, 2018 02:08
-
-
Save beardlessman/f5e65aa1807c1750a2707aa7bf418736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person { | |
constructor(name) { | |
this.name = name; | |
} | |
kek () { | |
return 'lol kek'; | |
} | |
} | |
class GreatPerson extends Person { | |
constructor (name) { | |
super(name); | |
this.kek(); | |
} | |
kek () { | |
console.log(`${super.kek()} cheburek`); | |
} | |
} | |
let person = new GreatPerson('mda'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment