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