Javascript if-statement vs. comparsion
<p>Is it true that in if-statement JavaScript wrap the condition into a Boolean?</p>

<pre><code>if(x) =&gt; if(Boolean(x))
</code></pre>

<p>Is it true that in comparison JavaScript wrap the compare elements into a Number?</p>

<pre><code>a == b =&gt; Number(a) == Number(b)
</code></pre>
