Tell us what’s happening:
I dont know why my code is not running.
Your code so far
function checkPositive(arr) {
// Only change code below this line
arr.some(function(num){
return num>0;
})
// Only change code above this line
}
checkPositive([1, 2, 3, -4, 5]);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
.
Challenge: Use the some Method to Check that Any Elements in an Array Meet a Criteria
Link to the challenge: