Tumble Flog – as seen by Adam Burmister – web super-hero in training

flog is a tumblelog written by
Adam Burmister; web developer

Written by
Adam Burmister
RSS Feed:
Subscribe
  1. 24th April 2009

    JavaScript quiz

    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...");
    }
    Written by
    Adam Burmister
    When?
    24th April 2009, About 3 years ago
    Permalink