MCQs>IT & Programming>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});
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