What will be the result of the following code execution?

var obj = new Object();
alert(obj.a);
obj.a = 5;
alert(obj.a);

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes