title: JavaScript conditional return
body: <p>I'm trying to get a Boolean value from a simple condition like this one :</p>
  
  <pre><code>let object = {name: 'test'};
  console.log(1 == 1 &amp;&amp; object);
  </code></pre>
  
  <p>But this console.log doesn't displays Boolean value <code>true</code>, but the entire object <code>{ name: 'test' }</code>.
  Can you explain me why ?</p>
  
  <p>Why do I have to use <code>!!</code>, to return a Boolean value like this ?</p>
  
  <pre><code>console.log(1 == 1 &amp;&amp; !!object);
  </code></pre>
  
  <p>Thanks for help.</p>