Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js filter method

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