checking a variable value using an OR operator
<p>So, a junior programmer on my team today wrote the following piece of code:</p>

<pre><code>if(status === ("incomplete" || "unknown"))
</code></pre>

<p>Which is obviously not going to do what he intended, which was this:</p>

<pre><code>if(status === "incomplete" || status === "unknown"))
</code></pre>

<p>But what I can't explain is why exactly the first snippet of code wouldn't work! Or why it evaluates to true if 'status' is set to 'incomplete' but to false when it's set to 'unknown'...</p>
