HEAD
Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers. Return your answer as a number.
No examples
function sumMix(x){
return x.reduce((a,b) => a+ Number(b), 0);
}
Try it yourself - CodeWars
Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers. Return your answer as a number.
No examples
function sumMix(x){
return x.reduce((a,b) => a+ Number(b), 0);
}
Try it yourself - CodeWars