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).
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.
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.