Skip to content

Commit 14550d6

Browse files
improve description of the defineProperty() method (mdn#20002)
* improve description of the defineProperty() method values added using Object.defineProperty() is not by default immutable, it depends on the value itself. * improve description of the defineProperty() method values added using Object.defineProperty() is not by default immutable, it depends on the value itself. * make defineProperty method's description more comprehensive * Update index.md Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent 12f80e6 commit 14550d6

File tree

1 file changed

+2
-2
lines changed
  • files/en-us/web/javascript/reference/global_objects/object/defineproperty

1 file changed

+2
-2
lines changed

files/en-us/web/javascript/reference/global_objects/object/defineproperty/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Normal property addition through assignment creates properties which show up dur
4343
property enumeration ({{jsxref("Statements/for...in", "for...in")}} loop or
4444
{{jsxref("Object.keys")}} method), whose values may be changed, and which may be
4545
{{jsxref("Operators/delete", "deleted", "", 1)}}. This method allows these extra details
46-
to be changed from their defaults. By default, values added using
47-
`Object.defineProperty()` are immutable and not enumerable.
46+
to be changed from their defaults. By default, properties added using
47+
`Object.defineProperty()` are not writable, not enumerable, and not configurable.
4848

4949
Property descriptors present in objects come in two main flavors: data descriptors and
5050
accessor descriptors. A **data descriptor** is a property that has a

0 commit comments

Comments
 (0)