Clarify instruction for Filter Arrays with Filter
parent
c8cd91770b
commit
014985130d
|
@ -419,7 +419,7 @@
|
|||
"<code>array = array.filter(function(val) {</code>",
|
||||
"<code> 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.');",
|
||||
|
|
Loading…
Reference in New Issue