JavaScript reduce | JavaScript array methods

preview_player
Показать описание
#javascript #arrays #reduce
In this video, we dig into the reduce method which is one of the most underrated javascript array methods defined on Javascript arrays. We check out the basic syntax, the functioning and also a little caveat regarding passing an initial value to this function as well.

1. Learn about public-key cryptography

2. maximum substring in a string (Google interview question)

3. How the javascript engine works?

4. Real time median in a stream, another google interview question

5. Understand the Javascript event loop

6. Understand Promises in javascript

7. Git basics you must know

8. Styled components in React

9. JavaScript Interview question null vs undefined

10. The reason behind that silly CORS error
Рекомендации по теме
Комментарии
Автор

I don`t understand the moment with the element "Number.MIN_VALUE"? Is not quite clear, where do we take it from?
And why just can't i put the first value of the array in the accamulator? If he does change it anyway

DEN-tgyp
Автор

if we do not pass initial value 0 then the output is look like this OUTPUT:
[object Object]2030
otherwise the OUTPUT :60
CAN U EXPLAIN Y

abdulmuneerahmed