MCQs > IT & Programming > JavaScript > How would you iterate over the following object? var my_data = {a: 'Ape', b: 'Banana', c: 'Citronella'};

JavaScript MCQs

How would you iterate over the following object? var my_data = {a: 'Ape', b: 'Banana', c: 'Citronella'};

Answer

Correct Answer: for (var key in my_data) {}

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