MCQs > IT & Programming > JavaScript > Correct syntax to create a new object ‘car’ with the following attributes? Color = red Model = 2016 Weight = 500kg

JavaScript MCQs

What is the correct syntax to create a new object ‘car’ with the following attributes?

Color = red

Model = 2016

Weight = 500kg

Answer

Correct Answer: var car = {color:”red”, model:”2016”, weight:”500kg”};

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