10 == [+!+[]]+[+[]] => true
really makes you think
>>56112713
Explain why that works
>>56112733
it just werks
>>56112733
the language is infused with ancient pajeet mysticism
lisp:(= 2 (+ (*)(*))) => true
really makes you think
>>56112733
I know jack shit about js but if I had to guess javascript just sucks at evaluating things.
>>56112902
filtered
>>56112796
(*) => 1
(+ (*) (*)) => 2
(= 2 (+ (*) (*))) => T
>>56112902
fucking kek
>>56112733
The monadic '+' operator converts the empty array to zero. The binary inverse of 0 coerces it into a bool, and inverts it, so it’s true. Another monadic '+' converts that true to 0. That logic leaves you with[1] + [0]. That’s equal to "10" because the arrays are coerced into strings and then added. "10" is equal to 10 because of coercion, again.
So the answer is, because of type coercion and a weak equality operator
>>56112713
>really makes you think
fuck off back to >>>/pol/
>>56114038
Huh, interesting. Thanks for the explanation