Fix the instructions in the Filter Array Challenge

This commit fixes the instruction text as discussed in the
issue thread.

Tested locally.
pull/6888/head
Mrugesh Mohapatra 2016-02-11 11:48:52 +00:00
parent 7364147489
commit 6154fa8e1e
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@
"The following code is an example of using <code>filter</code> to remove array elements that are equal to five:", "The following code is an example of using <code>filter</code> to remove array elements that are equal to five:",
"Note: We omit the second and third arguments since we only need the value", "Note: We omit the second and third arguments since we only need the value",
"<blockquote>array = array.filter(function(val) {<br>&nbsp;&nbsp;return val !== 5;<br>});</blockquote>", "<blockquote>array = array.filter(function(val) {<br>&nbsp;&nbsp;return val !== 5;<br>});</blockquote>",
"Use <code>filter</code> to filter out all elements from <code>oldArray</code> that are greater than 5 and store the results into <code>newArray</code>. <code>oldArray</code> should not change." "Use <code>filter</code> to create a new array with all the values from <code>oldArray</code> which are less than 6.<br><code>oldArray</code> should not change."
], ],
"challengeSeed": [ "challengeSeed": [
"var oldArray = [1,2,3,4,5,6,7,8,9,10];", "var oldArray = [1,2,3,4,5,6,7,8,9,10];",