What is the output of the following code?
const data = '{"name":"John","age":30,"city":"New York"}';
const obj = JSON.parse(data);
console.log(obj.name);
What is the output of the following code?
const data = '{"name":"John","age":30,"city":"New York"}';
const obj = JSON.parse(data);
console.log(obj.name);