Skip to content

Commit 1415a9a

Browse files
authored
Merge pull request javascript-tutorial#166 from fuchodeveloper/patch-2
Update article.md
2 parents dcee0e3 + 7ad58a7 commit 1415a9a

File tree

1 file changed

+2
-2
lines changed
  • 1-js/05-data-types/09-destructuring-assignment

1 file changed

+2
-2
lines changed

1-js/05-data-types/09-destructuring-assignment/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ let options = {
308308
let {title, ...rest} = options;
309309
*/!*
310310

311-
// now title="Menu", rest={height: 200, widht: 100}
311+
// now title="Menu", rest={height: 200, width: 100}
312312
alert(rest.height); // 200
313313
alert(rest.width); // 100
314314
```
@@ -389,7 +389,7 @@ The whole `options` object except `extra` that was not mentioned, is assigned to
389389
390390
Finally, we have `width`, `height`, `item1`, `item2` and `title` from the default value.
391391
392-
That often happens with destructuring assignments. We have a complex object with may properties and want extract only what we need.
392+
That often happens with destructuring assignments. We have a complex object with many properties and want to extract only what we need.
393393
394394
Even like this:
395395
```js

0 commit comments

Comments
 (0)