r/webdev • • Dec 20 '15

4 JavaScript Design Patterns You Should Know

https://scotch.io/bar-talk/4-javascript-design-patterns-you-should-know
115 Upvotes

19 comments sorted by

View all comments

6

u/jewdai Dec 20 '15

prototype is not a pattern. prototype is fundamental to OO in JavaScript.

1

u/[deleted] Dec 20 '15

Yeah hes actully showing a constructor pattern, but fails to ever tell you how to invoke it with 'new'