Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bloodyowl
· 11y ago · 0 comments
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.
Comments
[–]
Touche
11y ago
Yes, it prevents the very common mistake of putting an object on the prototype.