Compare values using == in JavaScript



examples/js/compare2.js
"use strict";

console.log(2 == 2);                 // true
console.log(2 == 3);                 // false
console.log(2 == null);              // false
console.log(2 == undefined);         // false

console.log(undefined == undefined); // true
console.log(null == null);           // true

console.log(false == 'false');      // false

console.log(false == undefined);    // false
console.log(false == null);         // false