Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript filter

const randomNumbers = [4, 11, 42, 14, 39];
const filteredArray = randomNumbers.filter(n => {  
  return n > 5;
});
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #javascript #filter
ADD COMMENT
Topic
Name
7+2 =