Hacker News new | ask | show | jobs
by romanovcode 3264 days ago
> Everything depends how the course is taught, not on the language used.

Usually this statements holds true, but not in this case. I mean, after all we are talking about language where `'0' == false` is `true`.

1 comments

Every language with loose typing has some edge cases.

Once students know that JS has type coercion, and how to avoid this entire class of problems, they never need to know or think about what "0" == false evaluates to.