title: why the value of console.log(1 && 2) is 2 instead of true or 1 in javascript?
body: <p>I had checked for many test cases. It's looking if the first value is true and it's returning the second value.</p>
  
  <p>Example:</p>
  
  <pre><code>2 &amp;&amp; 5 // --&gt; 5
  5 &amp;&amp; 10 // --&gt; 10
  0 &amp;&amp; 2 // --&gt; 0
  </code></pre>
  
  <p>Why doesn't it return either True or 1?</p>