Skip to content

Commit a9858eb

Browse files
authored
Merge pull request #1924 from mikayel00/master
fix square brackets
2 parents 6aa4c1c + af0a3c6 commit a9858eb

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ JSON.stringify(meetup); // Ошибка: Преобразование цикли
177177
Полный синтаксис `JSON.stringify`:
178178

179179
```js
180-
let json = JSON.stringify(value, [replacer, space])
180+
let json = JSON.stringify(value[, replacer, space])
181181
```
182182

183183
value
@@ -404,7 +404,7 @@ alert( JSON.stringify(meetup) );
404404

405405
Синтаксис:
406406
```js
407-
let value = JSON.parse(str, [reviver]);
407+
let value = JSON.parse(str[, reviver]);
408408
```
409409

410410
str

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Современные же методы это:
99

10-
- [Object.create(proto, [descriptors])](mdn:js/Object/create) -- создаёт пустой объект со свойством `[[Prototype]]`, указанным как `proto`, и необязательными дескрипторами свойств `descriptors`.
10+
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- создаёт пустой объект со свойством `[[Prototype]]`, указанным как `proto`, и необязательными дескрипторами свойств `descriptors`.
1111
- [Object.getPrototypeOf(obj)](mdn:js/Object/getPrototypeOf) -- возвращает свойство `[[Prototype]]` объекта `obj`.
1212
- [Object.setPrototypeOf(obj, proto)](mdn:js/Object/setPrototypeOf) -- устанавливает свойство `[[Prototype]]` объекта `obj` как `proto`.
1313

0 commit comments

Comments
 (0)