Craig posted over on the Xero blog referring to JavaScript’s script equality operator, ===.
That’s always a gotcha the first time you see it. I thought I’d raise a quick quiz for an interesting side effect of JavaScript’s type system.
What’s the output?
if(2 == 1 == 0) {
console.log("All things being equal...");
}