Array Reduce Explained With Examples - JavaScript Tutorial

Sdílet
Vložit
  • čas přidán 15. 05. 2022
  • 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

Komentáře • 61

  • @frankndungu5268
    @frankndungu5268 Před rokem +11

    Dom is the best at breaking down JavaScript, I've learnt a lot from him.

  • @SomeshNukala
    @SomeshNukala Před 2 měsíci

    No words. Lot many Thanks sir for your great explanation about JavaScript Array Reduce method. No one in the CZcams explained this clear. I challenge to anyone.
    Thanks a lot sir. Stay healthy and blessed

  • @kennethdouglasslai4833
    @kennethdouglasslai4833 Před 8 měsíci +1

    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

  • @alicefraser5799
    @alicefraser5799 Před 10 měsíci

    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.

  • @troiks
    @troiks Před 2 měsíci

    Excellent video, best explanation o have come across. Really appreciate the detail you go into

  • @Lina-tq8sb
    @Lina-tq8sb Před rokem +1

    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 Před rokem +1

    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!

  • @SomeshNukala
    @SomeshNukala Před 2 měsíci

    This is the best one of all youtube reduce videos

  • @ahmadnku8336
    @ahmadnku8336 Před 8 měsíci

    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.

  • @motivacao-fire
    @motivacao-fire Před měsícem

    damn bro, it took me a while to learn but with you for just 5 min i could understand, damn, thx bro

  • @danielamirul6430
    @danielamirul6430 Před 8 měsíci

    Here from Jonas Schemedtman JS on Udemy. I didnt understand well his explanation on reduce, but then discovered you!

  • @abubalo
    @abubalo Před 2 lety +6

    Thank you Dom, this tutorial is enough for me to make sense of array.reduce

  • @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

  • @heyitsmattox6509
    @heyitsmattox6509 Před rokem +6

    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 Před rokem

      For me single letters is better:)

    • @gman8361
      @gman8361 Před 6 měsíci

      ​@@gergoviski5225 Unless you're a machine I doubt what you're saying.

    • @gergoviski5225
      @gergoviski5225 Před 5 měsíci

      0011001000110001@@gman8361

  • @cagra8448
    @cagra8448 Před 2 lety

    Awesome video, thanks mate.

  • @monkeystylle
    @monkeystylle Před 2 lety

    thanks bro.. you explained things so well ..

  • @js-developer
    @js-developer Před 10 měsíci

    Nicely done man. 🎉

  • @suelingsusu1339
    @suelingsusu1339 Před 2 lety

    Good job... bravo!!!

  • @luisarroyo666
    @luisarroyo666 Před 2 lety

    Great tutorial bro!

  • @Cahid859
    @Cahid859 Před 2 lety +1

    Great content 👍

  • @simeonpetrov594
    @simeonpetrov594 Před rokem

    You deserve 1 000 000++ subscribes.

  • @happygirl4691
    @happygirl4691 Před 2 měsíci

    Thank you, very helpfull

  • @SahraClayton
    @SahraClayton Před 2 lety

    This is a great tutorial.

  • @oncoding4520
    @oncoding4520 Před rokem

    Your explanation is very good

  • @parmjeetmishra2
    @parmjeetmishra2 Před 8 měsíci

    Well you are amazing. and have best content . I find your explanation very satisfactory . Thank you providing such detailed contents.

  • @xr3kTx
    @xr3kTx Před 9 měsíci

    Thank you Document Object Model

  • @paulcristo
    @paulcristo Před 8 měsíci

    Thank you!

  • @naglisbakstys4696
    @naglisbakstys4696 Před rokem

    very good explanation

  • @mehrdad1068
    @mehrdad1068 Před rokem

    Thank you ❤️

  • @abunurullah2340
    @abunurullah2340 Před 8 měsíci

    Many Many Thanks

  • @anjalirani3066
    @anjalirani3066 Před 3 měsíci

    Thank you😊😊

  • @davoodaslani3882
    @davoodaslani3882 Před rokem

    One of the best explanations about this method.

  • @mavsocc
    @mavsocc Před 9 měsíci

    thank you, your videos are the best

  • @danchuzhov6445
    @danchuzhov6445 Před rokem +1

    Thanks, Dom! What extension for VS Code shows you these detailed syntax hints?

  • @timemmanson8350
    @timemmanson8350 Před 6 měsíci

    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?

  • @johanvanwambeke723
    @johanvanwambeke723 Před 6 měsíci

    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.

  • @chrisdietrich1533
    @chrisdietrich1533 Před 2 lety

    another great video thanks!

  • @marie-elizeventer7080

    Great explanation thanks!

  • @beinyourguard
    @beinyourguard Před 2 lety

    interesting!

  • @brwka
    @brwka Před 6 měsíci

    Where can i find more exercise for practising reduce i need it eo much

  • @naglisbakstys4696
    @naglisbakstys4696 Před rokem

    how to console.log oldest user name with age in second example?

  • @rukioruk6949
    @rukioruk6949 Před 8 měsíci

    You: "My name is Dumb"
    Me: "🤔 Go on"

  • @bmp713
    @bmp713 Před rokem

    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 Před 6 měsíci

    What theme are you using in VS Code?

    • @gman8361
      @gman8361 Před 6 měsíci

      Never mind, I found it. dcode theme.

  • @himanshuarora1910
    @himanshuarora1910 Před 9 měsíci

    whats this return "DOM"
    shouldn't it be Return part ?

    • @sakshiarora3565
      @sakshiarora3565 Před 9 měsíci

      Return dom means Return document object model ,you should have gone through basics of vanilla js first

  • @user-rv3me4sl5l
    @user-rv3me4sl5l Před 2 lety +1

    1

  • @TYLER-ol8fe
    @TYLER-ol8fe Před 2 lety +1

    like like like

  • @ahmedaz6917
    @ahmedaz6917 Před 2 lety

    I want to know JavaScript supports OOP with classical inheritance. true?

  • @21agdmnm
    @21agdmnm Před rokem

    every freaking reduce exemple on youtube its the same... sum of some numbers..

    • @mohamedabass2736
      @mohamedabass2736 Před rokem

      watch the video till the end, it has some other examples

  • @nikitakopot
    @nikitakopot Před rokem

    Thanks a lot!