Created
May 15, 2019 20:01
-
-
Save khyperia/4dd91e5e474a507b20eb27977efa72b1 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 B { | |
constructor(x) { | |
console.log(x); | |
} | |
} | |
class C extends B { | |
} | |
new C("C"); // prints "C" | |
class D extends B { | |
asdf = 2; | |
} | |
new D("D"); // prints undefined :'( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment