Array Reduce Explained With Examples - JavaScript Tutorial

  Рет қаралды 28,472

dcode

dcode

2 жыл бұрын

In today's video I'll be taking you through JavaScript's Array Reduce method with a few practical examples. Listen in 🙂
👇 JAVASCRIPT DOM CRASH COURSE:
www.udemy.com/course/the-ulti...
For your reference, check this out:
developer.mozilla.org/en-US/d...
🏫 My Udemy Courses - www.udemy.com/user/domenic-co...
🎨 Download my VS Code theme - marketplace.visualstudio.com/...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript

Пікірлер: 61
@frankndungu5268
@frankndungu5268 Жыл бұрын
Dom is the best at breaking down JavaScript, I've learnt a lot from him.
@alicefraser5799
@alicefraser5799 9 ай бұрын
You have made my day. I have wrestled with this one since forever. It's as if someone finally switched the lights on. Thanks so much for this. That's a sub from me.
@Lina-tq8sb
@Lina-tq8sb Жыл бұрын
Thank you. I easily understood the first example but going deeper was what I needed and helped me realize reduce is much more than a sum calculator.
@SergyVA
@SergyVA Жыл бұрын
Finally I found a video that really explained how to use this reduce(). I had watched several others that I did not get at all. So big thank for this explanation!
@kennethdouglasslai4833
@kennethdouglasslai4833 8 ай бұрын
I’m a student of programming and I watched your video finally understand about how reduce work and use. Thanks so much ur break down and educating method was so good 🙏🏼thanks a lot
@abubalo
@abubalo 2 жыл бұрын
Thank you Dom, this tutorial is enough for me to make sense of array.reduce
@SomeshNukala
@SomeshNukala 2 ай бұрын
This is the best one of all youtube reduce videos
@ahmadnku8336
@ahmadnku8336 8 ай бұрын
Finally, Today everything started to make sense, I Even used reducer sometimes in my projects however i didn't really had the true understanding of it.
@amirhosseinghasemi4831
@amirhosseinghasemi4831 Жыл бұрын
I like your explanation, thank you very much. I have learned many things which were really confusing for me before I found your videos
@monkeystylle
@monkeystylle Жыл бұрын
thanks bro.. you explained things so well ..
@SomeshNukala
@SomeshNukala 2 ай бұрын
No words. Lot many Thanks sir for your great explanation about JavaScript Array Reduce method. No one in the KZfaq explained this clear. I challenge to anyone. Thanks a lot sir. Stay healthy and blessed
@cagra8448
@cagra8448 2 жыл бұрын
Awesome video, thanks mate.
@motivacao-fire
@motivacao-fire Ай бұрын
damn bro, it took me a while to learn but with you for just 5 min i could understand, damn, thx bro
@danielamirul6430
@danielamirul6430 7 ай бұрын
Here from Jonas Schemedtman JS on Udemy. I didnt understand well his explanation on reduce, but then discovered you!
@troiks
@troiks Ай бұрын
Excellent video, best explanation o have come across. Really appreciate the detail you go into
@SahraClayton
@SahraClayton Жыл бұрын
This is a great tutorial.
@luisarroyo666
@luisarroyo666 2 жыл бұрын
Great tutorial bro!
@suelingsusu1339
@suelingsusu1339 2 жыл бұрын
Good job... bravo!!!
@js-developer
@js-developer 10 ай бұрын
Nicely done man. 🎉
@Cahid859
@Cahid859 2 жыл бұрын
Great content 👍
@happygirl4691
@happygirl4691 Ай бұрын
Thank you, very helpfull
@oncoding4520
@oncoding4520 Жыл бұрын
Your explanation is very good
@parmjeetmishra2
@parmjeetmishra2 8 ай бұрын
Well you are amazing. and have best content . I find your explanation very satisfactory . Thank you providing such detailed contents.
@simeonpetrov594
@simeonpetrov594 Жыл бұрын
You deserve 1 000 000++ subscribes.
@paulcristo
@paulcristo 8 ай бұрын
Thank you!
@davoodaslani3882
@davoodaslani3882 Жыл бұрын
One of the best explanations about this method.
@dcode-software
@dcode-software Жыл бұрын
I'm happy to hear you found it helpful 😌
@mehrdad1068
@mehrdad1068 Жыл бұрын
Thank you ❤️
@anjalirani3066
@anjalirani3066 3 ай бұрын
Thank you😊😊
@naglisbakstys4696
@naglisbakstys4696 Жыл бұрын
very good explanation
@danchuzhov6445
@danchuzhov6445 Жыл бұрын
Thanks, Dom! What extension for VS Code shows you these detailed syntax hints?
@abunurullah2340
@abunurullah2340 7 ай бұрын
Many Many Thanks
@mavsocc
@mavsocc 9 ай бұрын
thank you, your videos are the best
@dcode-software
@dcode-software 9 ай бұрын
You're welcome!
@marie-elizeventer7080
@marie-elizeventer7080 Жыл бұрын
Great explanation thanks!
@dcode-software
@dcode-software Жыл бұрын
I'm glad you found it helpful
@chrisdietrich1533
@chrisdietrich1533 2 жыл бұрын
another great video thanks!
@dcode-software
@dcode-software 2 жыл бұрын
You're welcome 😎👍
@timemmanson8350
@timemmanson8350 6 ай бұрын
Thanks, i understand array.reduce() better thanks to you. I have a question, when you return c.age in the if statement, does it mean that c.age becomes the previous value from the last function call and would be used as the p for the next if statement check?
@heyitsmattox6509
@heyitsmattox6509 Жыл бұрын
I love your tutorials. I think using single letters could confuse some of the newer learners. I know it saves time but typing out prev or curr instead of p and c might save some people some headache.
@gergoviski5225
@gergoviski5225 Жыл бұрын
For me single letters is better:)
@gman8361
@gman8361 5 ай бұрын
​@@gergoviski5225 Unless you're a machine I doubt what you're saying.
@gergoviski5225
@gergoviski5225 5 ай бұрын
0011001000110001@@gman8361
@xr3kTx
@xr3kTx 9 ай бұрын
Thank you Document Object Model
@beinyourguard
@beinyourguard 2 жыл бұрын
interesting!
@johanvanwambeke723
@johanvanwambeke723 6 ай бұрын
I would not recommend using reduce for the last example, looping over the names. But would consider reduce to get the initials, this breaks when you have 3 names or just 1.
@rukioruk6949
@rukioruk6949 7 ай бұрын
You: "My name is Dumb" Me: "🤔 Go on"
@brwka
@brwka 6 ай бұрын
Where can i find more exercise for practising reduce i need it eo much
@bmp713
@bmp713 Жыл бұрын
Single letter variable names turn messy very quickly. Even for experienced programmers it takes longer to figure out what you are doing in more complex code.
@gman8361
@gman8361 5 ай бұрын
What theme are you using in VS Code?
@gman8361
@gman8361 5 ай бұрын
Never mind, I found it. dcode theme.
@user-rv3me4sl5l
@user-rv3me4sl5l 2 жыл бұрын
1
@naglisbakstys4696
@naglisbakstys4696 Жыл бұрын
how to console.log oldest user name with age in second example?
@himanshuarora1910
@himanshuarora1910 9 ай бұрын
whats this return "DOM" shouldn't it be Return part ?
@sakshiarora3565
@sakshiarora3565 9 ай бұрын
Return dom means Return document object model ,you should have gone through basics of vanilla js first
@TYLER-ol8fe
@TYLER-ol8fe 2 жыл бұрын
like like like
@ahmedaz6917
@ahmedaz6917 2 жыл бұрын
I want to know JavaScript supports OOP with classical inheritance. true?
@BobbyBundlez
@BobbyBundlez 2 жыл бұрын
find out elsewhere man
@21agdmnm
@21agdmnm Жыл бұрын
every freaking reduce exemple on youtube its the same... sum of some numbers..
@mohamedabass2736
@mohamedabass2736 Жыл бұрын
watch the video till the end, it has some other examples
@nikitakopot
@nikitakopot Жыл бұрын
Thanks a lot!
5 Real Life Examples of Array Reduce in JavaScript
12:47
Map, Filter & Reduce EXPLAINED in JavaScript - It's EASY!
11:23
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 2,1 МЛН
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 14 МЛН
12 Things Every JavaScript Developer Should Know
14:29
dcode
Рет қаралды 10 М.
JavaScript reduce() method in 5 minutes! ♻
5:31
Bro Code
Рет қаралды 17 М.
Solving a practical intermediate react interview challenge
13:28
Web Dev Cody
Рет қаралды 90 М.
Learn JavaScript Array Reduce In 10 Minutes
10:22
Web Dev Simplified
Рет қаралды 196 М.
Learn the JavaScript Reduce function in 18 minutes (for beginners)
18:23
The Importance of THIS in Javascript
22:59
developedbyed
Рет қаралды 21 М.
There Are 6 Ways To Improve This JavaScript Code
9:49
dcode
Рет қаралды 6 М.
Solving a JavaScript Array Reduce Interview Question
11:27
Wes Bos
Рет қаралды 22 М.
Reduce: 10 Different Examples. JavaScript Fundamentals.
26:57
Leigh Halliday
Рет қаралды 28 М.