Context.
Almost works in JS. +("1" + 2) + 3 is 15, and "1" + 2 - -3 is 15, but "1" + 2 + 3 is "123". 🙄️
+("1" + 2) + 3
"1" + 2 - -3
"1" + 2 + 3
I'm still not convinced Javascript is a serious language rather than a prank.
I just think they're neat!
Almost works in JS.
+("1" + 2) + 3
is 15, and"1" + 2 - -3
is 15, but"1" + 2 + 3
is "123". 🙄️I'm still not convinced Javascript is a serious language rather than a prank.