Functional Programming: Use the some Method to Check that Any Elements in an Array Meet a Criteria

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:

The task ask u to check if an element in the array is true
You must return an element also not just the array

you are missing the return statement of the checkPositive function

arr.some() returns a value, you are not doing anything with that value