title: JavaScript: What is the difference between `if (!x)` and `if (x == null)`?
body: <p>What is the difference between <code>if (!x)</code> and <code>if (x == null)</code>; that is, when can their results be different?</p>