Chamada de volta ao filtro

let numbers = [9, 5, 14, 3, 11];

// works but is NOT recommended
let numbersAboveTen = numbers.filter(function(x) {
    return x >= 10;
});
console.log(numbersAboveTen); // [14, 11]
Iriz Legaspi