Created
October 11, 2016 16:13
-
-
Save tjwebb/298f253ff50cf1ed476f3c18f63417f7 to your computer and use it in GitHub Desktop.
ES6 Class Example
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 Foo { | |
test () { | |
return this.x | |
} | |
constructor () { | |
this.x = 1 | |
} | |
} | |
class Bar { | |
test () { | |
return this.x | |
} | |
constructor () { | |
this.x = 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment