Created
October 2, 2015 08:26
-
-
Save marcodejongh/59b52da25a7a993dd27a 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 SomeClass { | |
constructor() { | |
this.x = 0; | |
} | |
getX() { | |
return this.x; | |
} | |
setX(val) { | |
this.x = val; | |
} | |
} | |
function SomeClass () { | |
this.x = 0; | |
} | |
SomeClass.prototype.getX = function () { | |
return this.x; | |
}; | |
SomeClass.prototype.setX = function (val) { | |
this.x = val; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment