Clarify instruction for Filter Arrays with Filter

pull/18182/head
Eric Leung 2015-12-23 22:23:58 -08:00
parent c8cd91770b
commit 014985130d
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@
"<code>array = array.filter(function(val) {</code>",
"<code>&nbsp;&nbsp;return val !== 5;</code>",
"<code>});</code>",
"Use <code>filter</code> to remove all elements from <code>array</code> that are greater than 5."
"Use <code>filter</code> to remove all elements from <code>oldArray</code> that are greater than 5."
],
"tests": [
"assert.deepEqual(newArray, [1,2,3,4,5], 'message: You should have removed all the values from the array that are greater than 5.');",