Comment

Comment by moralestapia

No, JS is not weird, your code is weird.

true + ("true" - 0) ?

"" && -0 ?

Like, can you tell me a language where it does make sense to "apply AND to an empty string and a (negative?) zero"?

If you write code like this, you have much bigger issues than whatever you choose to write your code in.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton