diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops.english.md
index 0021026bd9..fd8184cfc3 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops.english.md
@@ -25,7 +25,7 @@ Let's try getting a while loop to work by pushing values to an array.
## Instructions
-Push the numbers 0 through 4 to myArray
using a while
loop.
+Add the numbers 5 through 0 (inclusive) in descending order to myArray
using a while
loop.
## Tests
@@ -35,8 +35,8 @@ Push the numbers 0 through 4 to myArray
using a while
tests:
- text: You should be using a while
loop for this.
testString: assert(code.match(/while/g));
- - text: myArray
should equal [0,1,2,3,4]
.
- testString: assert.deepEqual(myArray, [0,1,2,3,4]);
+ - text: myArray
should equal [5,4,3,2,1,0]
.
+ testString: assert.deepEqual(myArray, [5,4,3,2,1,0]);
```
@@ -76,10 +76,10 @@ if(typeof myArray !== "undefined"){(function(){return myArray;})();}
```js
var myArray = [];
-var i = 0;
-while(i < 5) {
+var i = 5;
+while(i >= 0) {
myArray.push(i);
- i++;
+ i--;
}
```