Q. What will be the result?
Code:const obj = {name: 'John'};
delete obj.name;
console.log(obj.name);
β
Correct Answer: (A)
undefined
Explanation: The delete operator removes the property from the object.