as discribed i would love to get the sum of the Strings in the Array with the reduce function.
const fruitsb = ['apple', 'orange', 'mango', 'pineapple'];
const sumtwo = fruitsb.reduce((accumulator, currentValue) => {
return accumulator.length + currentValue.length;
});
console.log(sumtwo);
So far i tried to get the length of my two parameters but when i console.log it i just get a Nan.