Skip to content

Commit 8ffd3f4

Browse files
committed
minor fixes
1 parent d8597dd commit 8ffd3f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

1-js/08-prototypes/04-prototype-methods/article.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ alert(Object.keys(chineseDictionary)); // hello,bye
216216

217217
- Getting/setting the prototype using the built-in `__proto__` getter/setter isn't recommended, it's now in the Annex B of the specification.
218218

219-
- We covered prototype-less objects, created with `Object.create(null)` or `{__proto__: null}.
219+
- We also covered prototype-less objects, created with `Object.create(null)` or `{__proto__: null}`.
220220

221-
These objects are used as dictionaries, to store any (possibly user-generated) keys. Without explicitly `null` prototype, objects inherit built-in methods and `__proto__` getter/setter from `Object.prototype`, making corresponding keys "occupied" and potentially causing side effects. With `null` prototype objects are truly empty.
221+
These objects are used as dictionaries, to store any (possibly user-generated) keys.
222+
223+
Without explicitly `null` prototype, objects inherit built-in methods and `__proto__` getter/setter from `Object.prototype`, making corresponding keys "occupied" and potentially causing side effects. With `null` prototype objects are truly empty.

0 commit comments

Comments
 (0)