0
我想知道當你(可能不小心)刪除一個父屬性(即原型鏈中的一個)時會發生什麼。刪除會失敗還是將它從原型中刪除?我的意思是類似於:關於Javascript的父項屬性`delete`
var pro = { "a": 1 };
var obj = Object.create(pro);
delete obj["a"]; // <- what will happen here?
delete obj.a; // <- or here? any difference to the one above