Square(n) Sum1 [CodeWars] 8kyu#4 - Square(n) Sum [CodeWars] 8kyu#4 - Square(n) Sum ■ Description:Complete the squareSum method so that it squares each number passed into it and then sums the results together. For example:squareSum([1, 2, 2]); // should return 9 ■ Qustion:function squareSum(numbers){ } ■ My Solution:1234567function squareSum(numbers){ var a = numbers[0]+numbers[1]; var b = numbers[2]; var powReturn =0; powReturn = Math.pow(a,b).. 2016. 5. 28. 이전 1 다음