const numbers = [5, 10, 20, 30, 40];
console.log(numbers.filter(checkNumber))
function checkNumber(number) {
return number >= 10;
}
What will this method output to the console? Write the correct numbers separated by a single space.
const numbers = [5, 10, 20, 30, 40];
console.log(numbers.filter(checkNumber))
function checkNumber(number) {
return number >= 10;
}
What will this method output to the console? Write the correct numbers separated by a single space.
Create a free account to access the full topic