If Object.create makes new deep copy of the object, what should happen post deleting the property from the newly created object?
Expected Output: Undefined
Actual Output: Karna
Code
var obj1 = {name:"Karna",loc:"Bengaluru"};
var obj2 = Object.create(obj1);
delete obj2.name;
console.log(obj2.name);
Could you please help me to understand why obj2.name still referring to obj1’s property?