Skip to content

Commit 1b1b07e

Browse files
authored
Update article.md
minor typo fix
1 parent b3fbb9c commit 1b1b07e

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)