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

Follow CodeGalaxy

Mobile Beta

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