// 使用 __proto__
var obj = {};
var descriptor = Object.create(null); // 没有继承的属性
// 默认没有 enumerable,没有 configurable,没有 writable
descriptor.value = 'static';
Object.defineProperty(obj, 'key', descriptor);
console.log(obj.key);
delete obj.key;
console.log('after delete:' + obj.key);

obj['name'] = 'bob';

console.log(obj);

delete obj.name;

console.log(obj);

Object.defineProperty(obj, 'name',  {configurable: false, writable:false, value: 'definename'} 
)

obj['name'] = 'hehehe';
delete obj.name;
console.log(obj.name);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.