Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call back filter

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]
Source by learnjavascript.online #
 
PREVIOUS NEXT
Tagged: #call #filter
ADD COMMENT
Topic
Name
4+2 =