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
Зарегистрируйся сейчас
или Подпишись на будущие тесты