MCQs > IT & Programming > JavaScript > What's the output? var obj = { 'first':'first', '2':'2', '34':'34', '1':'1', 'second':'second' }; for (var i in obj) { alert(i); };

JavaScript MCQs

What is the output of the following code? var obj = { "first":"first", "2":"2", "34":"34", "1":"1", "second":"second" }; for (var i in obj) { alert(i); };

Answer

Correct Answer: "1", "2", "34", "first", "second"

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