From 5f6595b7dc8c0cabd518a64346090785ce83f5ae Mon Sep 17 00:00:00 2001 From: rupali317 Date: Thu, 21 Feb 2019 14:00:21 +0800 Subject: [PATCH] fix: use correct variables for challenge (#34935) Deleted the sentence which refers a.start.x as an object, as it is not an object --- ...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 f1ed46084f..acf3e446fa 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 @@ -9,7 +9,7 @@ challengeType: 1 We can similarly destructure nested objects into variables. Consider the following code:
const a = {
  start: { x: 5, y: 6},
  end: { x: 6, y: -9 }
};
const { start : { x: startX, y: startY }} = a;
console.log(startX, startY); // 5, 6
-In the example above, the variable start is assigned the value of a.start, which is also an object. +In the example above, the variable startX is assigned the value of a.start.x. ## Instructions