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();
Explanation
Get an explanation when it's available:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes