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 ```