What will be printed out as a result of the following code compilation?

var a = 1;
function f() {
  console.log(a); // <---- what will this line print out?
  var a = 5;
}

f();

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback