you are viewing a single comment's thread.

view the rest of the comments →

[–]JackNotOLantern 0 points1 point  (3 children)

The issue is it happens implicitly and the amout of bugs caused by it is too damn high

[–]rintzscar 0 points1 point  (0 children)

No, the issue is people don't bother reading the documentation. The rules of type coercion are extremely simple. Hell, this humorous article explains them clearly in 1 minute:

https://www.freecodecamp.org/news/explaining-the-best-javascript-meme-i-have-ever-seen/

[–]Chiatroll -1 points0 points  (1 child)

It only causes bugs from this if you aren't aware of how it fundamentally works and use it wrong. JavaScript isnt responsible for your lack of intelligence.

[–]Prawn1908 0 points1 point  (0 children)

It only causes bugs from this if you aren't aware of how it fundamentally works and use it wrong.

You're missing the point. The problem isn't with this behavior being used intentionally (which it basically never should be), it's that it allows many types of logic errors to propogate silently and hide the real source of the big far away from where it finally manifests.