From bc470325d02013d10699d54a6d10c5104011702c Mon Sep 17 00:00:00 2001
From: Perrottarichard <57297531+Perrottarichard@users.noreply.github.com>
Date: Tue, 21 Jan 2020 21:25:10 +0700
Subject: [PATCH] Update
use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md
(#38092)
I added 'the' to correct the English grammar and hence improve the readability of the instructions.
---
...h-the-rest-parameter-to-reassign-array-elements.english.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md
index 107fd3188f..a34f81028c 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md
@@ -16,8 +16,8 @@ console.log(a, b); // 1, 2
console.log(arr); // [3, 4, 5, 7]
```
-Variables a
and b
take the first and second values from the array. After that, because of rest parameter's presence, arr
gets rest of the values in the form of an array.
-The rest element only works correctly as the last variable in the list. As in, you cannot use the rest parameter to catch a subarray that leaves out last element of the original array.
+Variables a
and b
take the first and second values from the array. After that, because of the rest parameter's presence, arr
gets the rest of the values in the form of an array.
+The rest element only works correctly as the last variable in the list. As in, you cannot use the rest parameter to catch a subarray that leaves out the last element of the original array.
## Instructions