logoalt Hacker News

citrin_ru • today at 11:00 AM • 1 reply • view on HN

JS is not the worst language but I would not say it has elegant and consistent design like some other languages do. Not every languages has the list of quirks as long as JS: https://github.com/denysdovhan/wtfjs (but C/C++ have much more foot-guns).


Replies

Sammi • today at 11:11 AM

The quirks are almost all to do with the old type coercion features that js has. If you enable linting to ban these features then you remove almost all these quirks and you're left with a modern and mostly clean and consistent language.