This is the solution to Codewars' KATA: Square(n)Sum
function squareSum(numbers){ | |
var total = 0; | |
for(var i = 0; i < numbers.length; i++) { | |
total += numbers[i] * numbers[i]; | |
} | |
return total; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment