Short js rant
May I ask why is the following true:
100 * true ? 2 : 3 == 2
Oh no, sorry. That’s not true.
That equals 2.
And what happens if you fix the loose == and replace it with stricter ===?
Yeah, right. 2 again.
Please don’t tell me multiplication with a BOOLEAN actually has precedence over ternary evaluation???
And don’t even get me started on equality having higher precedence than a ternary.
Gotta really love parentheses to make anything useful in js, huh.