What is the value of obj in the following code? var obj = JSON.parse('{"fruit": "Apple"}', function(k, v) { if (v == "Apple") return "Orange" else return v; });( )
{"Orange"}
{ "fruit" : "Apple"}
{"Apple"}
{ "fruit" : "Orange"}
What is the value of obj in the following code? var obj = JSON.parse('{"fruit": "Apple"}', function(k, v) { if (v == "Apple") return "Orange" else return v; });( )
{"Orange"}
{ "fruit" : "Apple"}
{"Apple"}
{ "fruit" : "Orange"}