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
Зареєструйся Зараз
або Підпишись на майбутні тести