Javascript static method intheritance
- by Matteo Pagliazzi
I want to create a javascript class/object that allow me to have various method:
Model class
Model.all() » static method
Model.find() » static method
Model delete() » instance method
Model save() » instance method
Model.create() » static that returns a new Model instance
For static method I can define them using:
Model.staticMethod(){ method…