4 ms·
Oh no, please not another OOP javascript tutorial without prototypes.
by Jebus 15y ago
Oh no, please not another OOP javascript tutorial without prototypes.
- TazeTSchnitzel 15y agoWhat's wrong with not using prototypal inheritance? There are several styles of JavaScript OOP. You don't have to use constructor functions. Unless you mean the .prototype property, in which case you really mean re-use of functions. That's something you can only use for unsafe public methods, unfortunately. For safe (uncompromisable) public methods it can't be used, nor can it for private or privileged methods.