• Wednesday , 1 April 2020

16.7: Array Functions: reduce() – Topics of JavaScript/ES6

Code Canyon



In this video, I cover the JavaScript array function reduce().

🎥 Next Video: https://youtu.be/qmnH5MT_luk

🔗 MDN’s Array Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array

🚂 The Coding Train website: http://thecodingtrain.com/
💖 Support this channel on Patreon: https://patreon.com/codingtrain
🛒 To buy Coding Train merchandise: https://www.designbyhumans.com/shop/codingtrain/
📚 Book recommendations: https://www.amazon.com/shop/thecodingtrain

💻 https://github.com/CodingTrain/Rainbow-Code

🎥 For an Introduction to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🎥 For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

🔗 https://p5js.org/
🔗 https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

Original source

3d Ocean

Related Posts

40 Comments

  1. Tanner Barcelos
    February 24, 2020 at 06:03

    @11:45 once he got here i cracked up by his fear of the code. Thats how we all are in my web dev elective at state rn LMAO

  2. Linus Nadler
    February 24, 2020 at 06:03

    7:35 min and max in pure JS would be (thanks to the ES8 Spread Operator) Math.min(…array); or Math.max(…array);

  3. Vinu Mon
    February 24, 2020 at 06:03

    People with deep knowledge will explain things as simple as possible, you are an example

  4. Oghenefoke Thompson
    February 24, 2020 at 06:03

    Thank you sir.

  5. jan twentyfortysix
    February 24, 2020 at 06:03

    no matter how I like your courses, I found this topic more fun and useful here https://youtu.be/1DMolJ2FrNY .. this time..

  6. Gabriel Sôarés
    February 24, 2020 at 06:03

    ssssooooooo wesome explanation

  7. The TopShottah
    February 24, 2020 at 06:03

    I know kung fu ….

  8. JEMJEM
    February 24, 2020 at 06:03

    Thank you for this, I understand it now

  9. opposer
    February 24, 2020 at 06:03

    To people who want a much clear understanding of where the accumulator and val comes from see this
    https://youtu.be/g1C40tDP0Bk

  10. Orlando Rojas Moncada
    February 24, 2020 at 06:03

    ARE YOU THE BEST TEACHER EVEr ?

  11. selfmadetool
    February 24, 2020 at 06:03

    Thank you, man! The internet has changed the way programmers learn!

  12. Mayar Ahmed
    February 24, 2020 at 06:03

    Thanks for this video it helps me a lot but can you also explain the Grouping objects by a property using reduce as the example in MDN make me so confused 🙂

  13. Or Partush
    February 24, 2020 at 06:03

    you're aweosme! thanks

  14. Sam Azzarano
    February 24, 2020 at 06:03

    Natural born teacher

  15. CairinK
    February 24, 2020 at 06:03

    which editor are you using??

  16. vivek raj
    February 24, 2020 at 06:03

    I love the way of your teaching👌👌,,Best Teacher🏆

  17. of undefined
    February 24, 2020 at 06:03

    Nice Work Keep

  18. John Stallone
    February 24, 2020 at 06:03

    summation using reduce < pre 7:33 post > find max using reduce

  19. John Stallone
    February 24, 2020 at 06:03

    Thanks to youtube and people like you; anyone across globe is getting best quality knowledge absolutely free of cost.

  20. John Stallone
    February 24, 2020 at 06:03

    3:20 why are you not using initializer value for reduce method ? Is it optional ?

  21. Kay Ramen
    February 24, 2020 at 06:03

    nice intro lol!!

  22. Northern Wealth Anarchy Perimeter
    February 24, 2020 at 06:03

    In Lisps, to do the reduce of a list of numbers is as simple as
    (Apply ‘+ ‘( 1 2 55 7))

  23. Gamal Abdall
    February 24, 2020 at 06:03

    I really really like your video, thank you so much for the efforts you had put in this video to make it so clear.

  24. Ryan Tanjaya
    February 24, 2020 at 06:03

    i still don't understand about zero become a second argument

  25. Stilbo
    February 24, 2020 at 06:03

    Such a brilliant tutorial!

  26. neuralwarp
    February 24, 2020 at 06:03

    a > b ? a : b
    is equivalent to
    a > b && a || b
    in most c-family languages.

  27. Inayet Hadi
    February 24, 2020 at 06:03

    Excellent explanation!

  28. Spillow
    February 24, 2020 at 06:03

    Mr.Peanutbutter

  29. Brian Wright
    February 24, 2020 at 06:03

    Honestly, I've been trying to understand HOFs that use HOFs and all kinds of mind numbing stuff for a guy who has just started learning JS in the past few months. Thank god I found this crazy dude. He is the funniest / most entertaining I've found so far.

  30. Will Davis
    February 24, 2020 at 06:03

    biggst

  31. Aayush Neupane
    February 24, 2020 at 06:03

    3:28 here can anyone answer how that function sum() adds array we have no information about array in that function sum

  32. Joey Garcia
    February 24, 2020 at 06:03

    I was trying to see the difference between your reducer example and just using a map function, but I guess that is where the accumulator comes in. The accumulator persist over all the iterations where in a map function, you would have to create a variable outside the function and in each iteration of the map function you could do math on that variable and change it accordingly but the reducer function provides that extra variable and allows you to use on each iteration. Nice. Thanks!!

  33. Efai
    February 24, 2020 at 06:03

    is there some way how to see all steps that reduce do ? I want to see how it works step by step.. btw: great intro ! 😀

  34. Pablo Araújo
    February 24, 2020 at 06:03

    You are amazing Teacher!!!!

  35. Mel
    February 24, 2020 at 06:03

    man you great

  36. Alex Haid
    February 24, 2020 at 06:03

    Thank you so much! Finally, I got what reduce function is all about and how it works!

  37. aditya garg
    February 24, 2020 at 06:03

    Beautiful <3

  38. khelowar vai
    February 24, 2020 at 06:03

    9:03. Does val>acc here means 9>5?

  39. Aleksey Melnyk
    February 24, 2020 at 06:03

    Эмм.. самое забавно то, что я мало понимал о чем он говорит. Но черт возьми! Он круто обьясняет, даже я понял суть reduce

  40. Carlo Kop
    February 24, 2020 at 06:03

    My head just exploded. If I see code like this I'll probably be lost. #noideawhathappenshere

Leave A Comment

You must be logged in to post a comment.