MCQs > IT & Programming > JSON > What is the value of json in the following code? var cars = []; cars[0] = 'Ford'; cars[1] = 'Toyota'; cars[2] = 'BMW'; var json = JSON.stringify({x: cars});

JSON MCQs

What is the value of json in the following code? var cars = []; cars[0] = 'Ford'; cars[1] = 'Toyota'; cars[2] = 'BMW'; var json = JSON.stringify({x: cars});

Answer

Correct Answer: {"x":["Ford","Toyota","BMW"]}

Explanation:

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

JSON Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JSON Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it