Difference between Configurable and Writable attributes of an Object
问题 I saw the following regarding javascript, object data property attributes —
Configurable: Specifies whether the property can be deleted or changed. — Enumerable: Specifies whether the property can be returned in a for/in loop. — Writable: Specifies whether the property can be changed. Here "Configurable" and "Writable" are representing the same (whether the property can be changed), then why do we need two separate attributes? 回答1: From: http://ejohn.org/blog/ecmascript-5-objects-and