ES6 - Use the Rest Parameter with Function Parameters - Free Code Camp

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Excellent Mr. Ian const sum = (... args) => {
return args.reduce((a, b) => a + b, 0);
}

console.log(sum(1, 2, 3));

zken
Автор

your explanations are direct and clear ! thank you

MillennialStocksYT
Автор

What extension did you use to automatically complete words in the browser?

טליואלי
Автор

We don't need to understand reduce at this point. Tnx I don't understand this part ((a, b) => a + b, 0) Can you help me?

tomisinergy
Автор

useless. i don't understand anything that's happening here. not explaining enough. just yeah this here that here and boom ur done. Not informative

edrikallahverdi
Автор

wear shirt or t-shirt sometimes brother

jeminbhalani