JS Shenanigans

Attached: lol.png (425x167, 9K)

>==
cringe

What's wrong with this?

weak typing bad

>==
brainlet detected

>==
At least learn what you're doing.

OP's brain is too small to handle dynamic languages.

There's literally nothing wrong with this, just use === if you don't wanna deal with it. When using == with operands of different types (with the exception of null and undefined) they're compared as if they were converted to Numbers.

Oh and for String to Boolean conversion, the empty string is falsy and any other string truthy.

this but unironically