What will be the value of a variable after executing the following code?
 
var a = 5; 
var a;
 
Explanation
The code
var a;
is hoisted to the top by the compiler.
Read more: hoisting

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты