Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Codewars Beginner - Reduce but Grow

function grow(x) {
    return x.reduce((res, n) => res * n);
}
 
PREVIOUS NEXT
Tagged: #Codewars #Beginner #Reduce #Grow
ADD COMMENT
Topic
Name
2+4 =