<<<<<<< HEAD Code Wars - Brett Crafton

Sum Mixed Array

Question

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

Solution by -

My Solution


	function sumMix(x){
		return x.reduce((a,b) => a+ Number(b), 0);
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Sum Mixed Array

Question

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

Solution by -

My Solution


	function sumMix(x){
		return x.reduce((a,b) => a+ Number(b), 0);
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39