3 ms·
It's hilarious, because: "1" + 1 === "11" "1" - 1 === 0 "1" + 1n === "11" "1" - 1n: Exception
by gcbirzan 8y ago
It's hilarious, because:
"1" + 1 === "11"
"1" - 1 === 0
"1" + 1n === "11"
"1" - 1n: Exception
- maxxxxx 8y agoOur testers write a lot scripts in PHP and I have spent countless hours debugging stuff like this. A special kind of fun is to figure out what expressions count as TRUE or FALSE. JavaScript seems to have the same, slightly different, problems.