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:

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести