Performance of different If statement versions in Javascript
<p>I'm just curious.. how does the performance differ between the different versions of conditional statements?</p>

<p>Namely:</p>

<pre><code>if ( x == false) //doSomething

if ( x === false ) //doSomething

if ( !x ) //doSomething

!x &amp;&amp; //doSomething
</code></pre>

<p>Personally, I would prefer using the 3rd one since it is a lot shorter than the other three. But I am a bit skeptic to whether I am unaware of a "possible" performance drawback. Even if it is just a difference of milliseconds, it matters for me.</p>

<p>Thanks!</p>
