easierbycode
4/29/2016 - 6:46 PM

static is an ES6 keyword used to attach methods to a class

static is an ES6 keyword used to attach methods to a class

class Project {
  static getDefaultId() {
    return 1;
  }
}

Project.getDefaultId();
// 1