From d2c5cc7ff3b08b4a44d68430b093e461f547d674 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Thu, 20 Jun 2019 09:28:59 -0500 Subject: [PATCH] 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 --- ...ssignment-to-assign-variables-from-nested-objects.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md index a3f5dc79c4..7fdc3932df 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md @@ -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;