I've been following this post but I cannot get my array to add up all numbers in my array.
I use this:
var array_new = [$(".rightcell.emphasize").text().split('€')];
to give me this array:
array_new: ,102.80,192.60,22.16
then I do this:
var sum = array_new.reduce((a, b) => a + b, 0);
console.log(sum); //gives me this 0,102.80,192.60,22.16
When all I want to do is add up the numbers, I get this result 0,102.80,192.60,22.16. Can anyone advise me?