title: JavaScript if(x) vs if(x==true)
body: <p>In JavaScript , in which cases the following statements won't be logically equal ?</p>
  
  <pre><code>if(x){}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if(x==true){}
  </code></pre>
  
  <p>Thanks</p>