whenever we define a variable in console with some value for example
var f = 20;
var j = 30;
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?