Array Reduce Explained With Examples - JavaScript Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024

Комментарии • 63

  • @francodosha
    @francodosha 2 года назад +14

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

  • @kennethdouglasslai4833
    @kennethdouglasslai4833 Год назад +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 Год назад

    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 Год назад +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 2 года назад +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 6 месяцев назад

    This is the best one of all youtube reduce videos

  • @troiks
    @troiks 6 месяцев назад

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

  • @danielamirul6430
    @danielamirul6430 11 месяцев назад

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

  • @ahmadnku8336
    @ahmadnku8336 Год назад

    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.

  • @SomeshNukala
    @SomeshNukala 6 месяцев назад

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

  • @abubalo
    @abubalo 2 года назад +6

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

  • @timemmanson8350
    @timemmanson8350 10 месяцев назад

    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?

  • @simeonpetrov594
    @simeonpetrov594 Год назад

    You deserve 1 000 000++ subscribes.

  • @heyitsmattox6509
    @heyitsmattox6509 Год назад +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 Год назад

      For me single letters is better:)

    • @gman8361
      @gman8361 9 месяцев назад

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

    • @gergoviski5225
      @gergoviski5225 9 месяцев назад

      0011001000110001@@gman8361

  • @zannatul23
    @zannatul23 22 дня назад

    excellent explanation!

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

  • @motivacao-fire
    @motivacao-fire 5 месяцев назад

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

  • @davoodaslani3882
    @davoodaslani3882 Год назад

    One of the best explanations about this method.

  • @oncoding4520
    @oncoding4520 Год назад

    Your explanation is very good

  • @naglisbakstys4696
    @naglisbakstys4696 Год назад

    very good explanation

  • @parmjeetmishra2
    @parmjeetmishra2 Год назад

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

  • @happygirl4691
    @happygirl4691 5 месяцев назад

    Thank you, very helpfull

  • @anjalirani3066
    @anjalirani3066 7 месяцев назад

    Thank you😊😊

  • @js-developer
    @js-developer Год назад

    Nicely done man. 🎉

  • @paulcristo
    @paulcristo Год назад

    Thank you!

  • @abunurullah2340
    @abunurullah2340 11 месяцев назад

    Many Many Thanks

  • @danchuzhov6445
    @danchuzhov6445 2 года назад +1

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

  • @xr3kTx
    @xr3kTx Год назад

    Thank you Document Object Model

  • @johanvanwambeke723
    @johanvanwambeke723 10 месяцев назад

    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.

  • @nikitakopot
    @nikitakopot Год назад

    Thanks a lot!

  • @mavsocc
    @mavsocc Год назад

    thank you, your videos are the best

  • @monkeystylle
    @monkeystylle 2 года назад

    thanks bro.. you explained things so well ..

  • @ayushsharma1567
    @ayushsharma1567 Месяц назад

    Great great great great 👍

  • @Cahid859
    @Cahid859 2 года назад +1

    Great content 👍

  • @luisarroyo666
    @luisarroyo666 2 года назад

    Great tutorial bro!

  • @suelingsusu1339
    @suelingsusu1339 2 года назад

    Good job... bravo!!!

  • @brwka
    @brwka 10 месяцев назад

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

  • @SahraClayton
    @SahraClayton 2 года назад

    This is a great tutorial.

  • @cagra8448
    @cagra8448 2 года назад

    Awesome video, thanks mate.

  • @marie-elizeventer7080
    @marie-elizeventer7080 Год назад

    Great explanation thanks!

  • @chrisdietrich1533
    @chrisdietrich1533 2 года назад

    another great video thanks!

  • @rukioruk6949
    @rukioruk6949 11 месяцев назад

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

  • @gman8361
    @gman8361 9 месяцев назад

    What theme are you using in VS Code?

    • @gman8361
      @gman8361 9 месяцев назад

      Never mind, I found it. dcode theme.

  • @naglisbakstys4696
    @naglisbakstys4696 Год назад

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

  • @himanshuarora1910
    @himanshuarora1910 Год назад

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

    • @sakshiarora3565
      @sakshiarora3565 Год назад

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

  • @beinyourguard
    @beinyourguard 2 года назад

    interesting!

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

  • @ahmedaz6917
    @ahmedaz6917 2 года назад

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

  • @غريبالاطوار-ه6ص
    @غريبالاطوار-ه6ص 2 года назад +1

    1

  • @TYLER-ol8fe
    @TYLER-ol8fe 2 года назад +1

    like like like

  • @21agdmnm
    @21agdmnm 2 года назад

    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

  • @mehrdad1068
    @mehrdad1068 Год назад

    Thank you ❤️