console.log(false == 0); // true console.log(false == ''); // true console.log(null == undefined); // true console.log('' == 0); // true
If you’ve spent more than 48 hours with JavaScript, you’ve probably uttered the phrase: “Wait… why did it do that?” javascript weird parts