title: I'm learning Typescript. How can you explain this?
body: <p><img src="https://i.stack.imgur.com/oLx1p.jpg" alt="enter image description here"></p>
  
  <p><code>[1,2]</code> is the output. Not <code>False</code>. It should  be <code>[1,2]</code> and <code>False</code>. </p>
  
  <p>How can the compiler ignore Console.log statement and print <code>[1,2]</code> instead? </p>
  
  <p>I know the code is just 3 lines, but if you think there is an explanation involved in it to better understand and write good code. </p>