Clarify instruction for Filter Arrays with Filter
This commit is contained in:
@ -419,7 +419,7 @@
|
|||||||
"<code>array = array.filter(function(val) {</code>",
|
"<code>array = array.filter(function(val) {</code>",
|
||||||
"<code> return val !== 5;</code>",
|
"<code> return val !== 5;</code>",
|
||||||
"<code>});</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": [
|
"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.');",
|
"assert.deepEqual(newArray, [1,2,3,4,5], 'message: You should have removed all the values from the array that are greater than 5.');",
|
||||||
|
Reference in New Issue
Block a user