MCQs>IT & Programming>JSON>What is the value of json in the following code? var obj = { fruit: 'apple', toJSON: function () { return 'orange'; } }; var json = JSON.stringify({x: obj});
JSON MCQs
What is the value of json in the following code? var obj = { fruit: 'apple', toJSON: function () { return 'orange'; } }; var json = JSON.stringify({x: obj});
Answer
Correct Answer: {"x":"orange"}
Explanation:
Note: This Question is unanswered, help us to find answer for this one