Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-objects.english.md
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
parent
3b96f3e60d
commit
72cb38a839
@ -21,7 +21,7 @@ const { name: userName, age: userAge } = user;
|
||||
// userName = 'John Doe', userAge = 34
|
||||
```
|
||||
|
||||
You may read it as "get the value of <code>user.name</code> and copy it into <code>userName</code>" and so on.
|
||||
You may read it as "get the value of <code>user.name</code> and assign it to a new variable named <code>userName</code>" and so on.
|
||||
</section>
|
||||
|
||||
## Instructions
|
||||
|
Loading…
x
Reference in New Issue
Block a user