DEV Community

Discussion on: Daily Challenge #225 - Square'n'Sum

Collapse
 
shhdharmen profile image
Dharmen Shah

JS:

function squareSum(numbers){
  return numbers.map(a=>Math.pow(a,2)).reduce((a,b)=>a+b,0);
};