Created
April 29, 2016 18:46
-
-
Save easierbycode/77568ed1be03fa809b4528083b007b58 to your computer and use it in GitHub Desktop.
static is an ES6 keyword used to attach methods to a class
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 Project { | |
static getDefaultId() { | |
return 1; | |
} | |
} | |
Project.getDefaultId(); | |
// 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment