Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Tom
2019-06-20 09:28:59 -05:00
committed by Kristofer Koishigawa
parent 9f4799bba1
commit d2c5cc7ff3

View File

@ -25,7 +25,7 @@ Here's how to extract the values into variables with the same name as they have
const { johnDoe: { age, email }} = user;
```
And here's how you can assign new variable names when destructuring a nested object like this:
And here's how you can assign new variable names when destructuring a nested object:
```js
const { johnDoe: { age: userAge, email: userEmail }} = user;