title: Why is 0 == "" true in JavaScript
body: <p>Why is <code>0 == ""</code> true in JavaScript? I have found a <a href="https://stackoverflow.com/questions/4567393/why-do-alert0-and-alertfalse-0-both-output-true-in-javascript">similar post here</a>, but why is a number 0 similar an empty string? Of course, <code>0 === ""</code> is false.</p>