Tell us what’s happening: I don’t understand why the first solution posted here: freeCodeCamp Challenge Guide: Drop it - Guide - The freeCodeCamp Forum works because in dropElements([0, 1, 0, 1], function(n) {return n === 1;}))
the condition to run the loop returns true
for the first element so the method inside should not run, right? Or am I missing something?
**Your code so far**
function dropElements(arr, func) {
return arr;
}
dropElements([1, 2, 3], function(n) {return n < 3; });
Challenge: Drop it
Link to the challenge: