IS
Size: a a a
IS
IS
КК
КК
АМ
АМ
IS
DM
const sumOfLen = (...strings) => {
return strings.reduce((string, total) => string.length + total);
}
console.log(sumOfLen("hello"));
IS
IS
BB
DM
return strings.reduce((string, total) => string.length + total, 0);верно?
BB
КК
.reduce((acc, str) => acc + str.length, 0);
DM
IS
IS
IS
IS