MCQs > IT & Programming > JavaScript > Correct syntax for declaring an object literal?

JavaScript MCQs

Which is the correct syntax for declaring an object literal?

Answer

Correct Answer: var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};

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