title: Why initialization of a variable returns undefined in console?
body: <p>whenever we define a variable in console with some value for example </p>
  
  <pre><code>var f = 20;
  var j = 30;
  </code></pre>
  
  <p>the above statement returns undefined for one time, can you please help in understanding why it returns undefined even it we have defined both the variables?
  Secondly if it is related to hoisting then why undefined is coming only once?</p>