Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow function in javascript even numbers

var numbers = [1,2,3,4,5]
var evens = numbers.filter(n => n % 2 == 0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #arrow #function #javascript #numbers
ADD COMMENT
Topic
Name
5+9 =