sumMix(x)/*
Given an array of integers as strings and numbers,
returns the sum of the array values as if all were numbers.
*/sumMix([5,'5']);// 10sumMix([52,'144','12',67]);// 275
functionsumMix(x){// Initialize sumlet sum =0;// Convert all passed in elements to Numbers and add them to the sum
x.forEach(element=>{
element =Number(element);
sum += element;})// Return the sumreturn sum;}
Alternatively, you can write it like this...
functionsumMix(x){return x.map(a=>+a).reduce((a, b)=> a + b);/* EXPLANATION:
TBD
*/}