Skip to content

Commit 5dff42b

Browse files
committed
closes #3222
1 parent a4050f2 commit 5dff42b

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-properties/01-property-descriptors

1 file changed

+1
-1
lines changed

Diff for: 1-js/07-object-properties/01-property-descriptors/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ user.name = "Pete"; // Error: Cannot assign to read only property 'name'
123123
Now no one can change the name of our user, unless they apply their own `defineProperty` to override ours.
124124

125125
```smart header="Errors appear only in strict mode"
126-
In the non-strict mode, no errors occur when writing to non-writable properties and such. But the operation still won't succeed. Flag-violating actions are just silently ignored in non-strict.
126+
In non-strict mode, no errors occur when writing to non-writable properties and such. But the operation still won't succeed. Flag-violating actions are just silently ignored in non-strict.
127127
```
128128

129129
Here's the same example, but the property is created from scratch:

0 commit comments

Comments
 (0)