JavaScript Equality Table
<p><pre><code>  if (2) { console.log('yes') }
  > yes
  > undefined
  if (2==true) { console.log('yes') }
  > undefined
</code></pre>
I would have thought these would be the same - what's the difference between being "truthy" in the first case, and being ==true, as in the second?