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. parent moralestapia 3 years ago
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.