Let’s assume that your cited study is correct. JavaScript’s freewheeling coercions are mostly safe. This still doesn’t change the fact that JavaScript’s bizarre semantics in this regard makes the language, and the resulting code, more difficult to reason. You can’t entirely trust your understanding of what’s going on in the code unless you completely immerse yourself in the language spec and know every nook and cranny of the language to the minutest detail. That’s a whole shitload of effort for a language that purports to be easy to learn and easy to use.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store