Skip to content

Commit 1a6edd7

Browse files
authored
Merge pull request #3656 from mikayel00/fix-brackets
fix square brackets
2 parents 9c07c5b + f0f1006 commit 1a6edd7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1-js/05-data-types/12-json/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ To decode a JSON-string, we need another method named [JSON.parse](mdn:js/JSON/p
405405

406406
The syntax:
407407
```js
408-
let value = JSON.parse(str, [reviver]);
408+
let value = JSON.parse(str[, reviver]);
409409
```
410410

411411
str

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The only usage of `__proto__`, that's not frowned upon, is as a property when cr
1414

1515
Although, there's a special method for this too:
1616

17-
- [Object.create(proto, [descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
17+
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
1818

1919
For instance:
2020

@@ -201,7 +201,7 @@ alert(Object.keys(chineseDictionary)); // hello,bye
201201
- To create an object with the given prototype, use:
202202

203203
- literal syntax: `{ __proto__: ... }`, allows to specify multiple properties
204-
- or [Object.create(proto, [descriptors])](mdn:js/Object/create), allows to specify property descriptors.
204+
- or [Object.create(proto[, descriptors])](mdn:js/Object/create), allows to specify property descriptors.
205205

206206
The `Object.create` provides an easy way to shallow-copy an object with all descriptors:
207207

0 commit comments

Comments
 (0)