4 ms·
it reduces the necessary LoC and forces you to only define methods in the [[Proto]] land. ES7 will let you define properties in it, but it will effectively be a
by bloodyowl 12y ago
it reduces the necessary LoC and forces you to only define methods in the [[Proto]] land. ES7 will let you define properties in it, but it will effectively be as if you defined them in the constructor.
- Touche 12y agoYes, it prevents the very common mistake of putting an object on the prototype.