Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Codewars Square(n) Sum

function squareSum(numbers) {    
    return numbers.reduce((a, x) => a + (x * x), 0)
}
 
PREVIOUS NEXT
Tagged: #Codewars #Sum
ADD COMMENT
Topic
Name
6+2 =