DEV Community

Discussion on: (a == 1 && a == 2 && a == 3) === true - Wait, hold on...

yujiri8 profile image
Ryan Westlund

Aw man, I was disappointed to find out it wasn't what the title made it sound like. I thought for a second that if I copy pasted that snippest into a Node prompt I'd get true. Would've been hilarious.

emnudge profile image
EmNudge Author

Haha, that would have been some real weirdness. It still works, but you need some code before it.

I do have a different article, the one on wtfjs and coercion, that is just copy/paste though!