From fabd45e1b45a436d9b2bba47e6d1bdf64e147fae Mon Sep 17 00:00:00 2001 From: Paul Gamble Date: Thu, 31 Jan 2019 13:39:39 -0500 Subject: [PATCH] Revert "Challenge - ES6: Use Destructuring Assignment to Assign Variables from Arrays - Added solution (#26531)" (#34949) This reverts commit 23096f7ed625b78409d6f0f798c9579521adfa14. --- ...nt-to-assign-variables-from-arrays.english.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-arrays.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-arrays.english.md index 7072f70c5b..15077042c4 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-arrays.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-arrays.english.md @@ -42,11 +42,13 @@ tests:
```js -"use strict"; let a = 8, b = 6; -// change code below this line +(() => { + "use strict"; + // change code below this line -// change code above this line + // change code above this line +})(); console.log(a); // should be 6 console.log(b); // should be 8 ``` @@ -61,12 +63,6 @@ console.log(b); // should be 8
```js -"use strict"; -let a = 8, b = 6; -// change code below this line -[a, b] = [b, a]; -// change code above this line -console.log(a); // should be 6 -console.log(b); // should be 8 +// solution required ```