4 ms·
I agree but most modern JS doesn't use prototypal inheritance. JS has plenty of bad parts you shouldn't use. Classes are the main one.
by jokethrowaway 3y ago
I agree but most modern JS doesn't use prototypal inheritance.
JS has plenty of bad parts you shouldn't use.
Classes are the main one.
- iopq 3y agoI had a coworker who wrote return { ... } And JS helpfully inserted a semi-colon after return This is a feature you need to know about and you have to go out of your way not to get rekt by it
- DinaCoder99 3y agoEven checking the class of a given object feels quite flimsy to me, although this perhaps isn't a huge problem in a coherent codebase. This isn't meant to be an attack on javascript as a worthwhile tool to learn, by the way, just a testament to the fact that it's not an easy language to master in the slightest.