Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

returning the outliers javascript array

[2, 4, 0, 100, 4, 11, 2602, 36]
Should return: 11 (the only odd number)

[160, 3, 1719, 19, 11, 13, -21]
Should return: 160 (the only even number)
Source by www.codewars.com #
 
PREVIOUS NEXT
Tagged: #returning #outliers #javascript #array
ADD COMMENT
Topic
Name
8+8 =