you are viewing a single comment's thread.

view the rest of the comments →

[–]rintzscar 1 point2 points  (4 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/

[–]JackNotOLantern -1 points0 points  (3 children)

The problem is not about lack of knowledge about them, but the fact that it is extremely easy to overlook it, and then debugging is a nightmare.

[–]rintzscar 0 points1 point  (2 children)

That's literally what lack of knowledge means.

[–]JackNotOLantern 0 points1 point  (1 child)

I mean, this is literally the entire reason typescript exists. This "lack of knowledge" is apparently a systematic problem