Hacker News new | ask | show | jobs
by bpesquet 3393 days ago
I don't consider Object.create() and factory functions to be "old patterns", but YMMV.

How would you teach OOP basics to a JS newcomer then? Using only class without mentioning prototypes?