Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 266 Bytes

(8 kyu) Square(n) Sum.md

File metadata and controls

11 lines (7 loc) · 266 Bytes

Square(n) Sum (8 kyu)

https://www.codewars.com/kata/square-n-sum

Complete the squareSum/square_sum/SquareSum method so that it squares each number passed into it and then sums the results together.

For example:

square_sum([1, 2, 2]) // should return 9