var a = false; // compare with == console.log(a === 0); // compare with === console.log(a == false);