MCQs > IT & Programming > JavaScript > What's the output? var somevar; alert(typeof(somevar));

JavaScript MCQs

What is the result of the following code snippet

var somevar;
alert(typeof(somevar));


Answer

Correct Answer: An alert box pops up displaying "undefined" 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it