Skip to content

Commit 04c0570

Browse files
authored
Merge pull request #1974 from akymtl/patch-3
Update article.md
2 parents 5e74d7c + 1b1b07e commit 04c0570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ alert(Object.keys(chineseDictionary)); // hello,bye
175175

176176
Modern methods to set up and directly access the prototype are:
177177

178-
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- creates an empty object with a given `proto` as `[[Prototype]]` (can be `null`) and optional property descriptors.
178+
- [Object.create(proto, [descriptors])](mdn:js/Object/create) -- creates an empty object with a given `proto` as `[[Prototype]]` (can be `null`) and optional property descriptors.
179179
- [Object.getPrototypeOf(obj)](mdn:js/Object.getPrototypeOf) -- returns the `[[Prototype]]` of `obj` (same as `__proto__` getter).
180180
- [Object.setPrototypeOf(obj, proto)](mdn:js/Object.setPrototypeOf) -- sets the `[[Prototype]]` of `obj` to `proto` (same as `__proto__` setter).
181181

0 commit comments

Comments
 (0)