Complete the square sum function so that it squares each number passed into it and then sums the results together.
For example, for [1, 2, 2] it should return 9 because 1^2 + 2^2 + 2^2 = 9.
function squareSum(numbers){
  let sum = 0;
  for (let el of numbers) {
    sum += el*el;
  }
  return sum;
}
.reduce .map Math.pow를 사용하여 각 요소에 접근하는 방법도 있더라. 나는 for of를 사용해 보았는데 다른 메소드들도 더 익숙하게 다뤄보아야겠다.