• Wednesday , 1 April 2020

16.5: Higher Order Functions in JavaScript – Topics of JavaScript/ES6

Code Canyon



In this video, I discuss “higher order functions” in JavaScript.

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

🎥 Topics of JavaScript/ES6: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YgpA3Oht-7B4NBQwFVe3pr
🎥 ES6 Arrow Function: https://youtu.be/mrYMzpbFz18
🎥 Closures in JavaScript: https://youtu.be/-jysK0nlz7A

🚂 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

28 Comments

  1. Tycho Atsma
    February 28, 2020 at 06:10

    The syntax is not the only difference between arrow and regular functions. An arrow function does not create its own context, while regular ones do. This is something important to keep in mind.

  2. Levi Reyenga
    February 28, 2020 at 06:10

    I really admire all of your videos. Learning to code with you is exciting. I really appreciate how genuinely excited you are to share what you know with us!

  3. Joseph Zins
    February 28, 2020 at 06:10

    I never knew programming could even be like this! This is incredible!

  4. Mo Sun
    February 28, 2020 at 06:10

    "A function that expects a function as a parameter, creates a function and/or returns a function." – this did it for me. Thank you!!!

  5. Samin Chowdhury
    February 28, 2020 at 06:10

    7:25 me whenever I see food.

  6. Malik Jamazov
    February 28, 2020 at 06:10

    You are the best! You solve my questions about high-ordered functions!

  7. Brad Hamilton
    February 28, 2020 at 06:10

    I accidentally set the tripler factor to 4 and when changing it to three I got an error telling me identifier tripler had already been declared. It's a "let" declaration ……?

  8. Charizard
    February 28, 2020 at 06:10

    wow thanks! 😀

  9. Tres Moore
    February 28, 2020 at 06:10

    FINALLY! A coding demonstration channel with personality!

    The energy was infectious and actually funny which is wayyyyyyyy more than you can say about any of the other programming channels i've tried!

  10. 乐易盎
    February 28, 2020 at 06:10

    I like your teaching

  11. Error Debug
    February 28, 2020 at 06:10

    Hi thanks for your videos you are awesome healthy guy!
    I have one question cus i am a beginner, I see this first time, how can you pass a number into a variable 'doubler(4)' and that variable knows that you are referring to returned x parameter??? How and why it knows that, how is that linked?

  12. ガチャRuuji
    February 28, 2020 at 06:10

    So I tried shortening the whole thing up and came up with this:

    let add = addition => { return x => x + addition; }

    Same with multiple, just as an addition.

  13. Angel Carvajal
    February 28, 2020 at 06:10

    11:30
    const multiplier = factor => x => x * factor;
    🙂

  14. HeSsA SONE
    February 28, 2020 at 06:10

    Ahh why this all confusing like this ;-;

  15. Oleksandr Fomin
    February 28, 2020 at 06:10

    I guess I need to try it again tomorrow. This shit gives me headache

  16. Prakash Ch. Awal
    February 28, 2020 at 06:10

    You are very funny!

  17. Aleksandr Staetskiy
    February 28, 2020 at 06:10

    Nice

  18. Ynot Butcher
    February 28, 2020 at 06:10

    you are very majectic the way you teach, bahaha it works!

  19. Muhammad Sadam Sadewa
    February 28, 2020 at 06:10

    damn! I just subscribed and enjoy how you present this!

  20. Justin L
    February 28, 2020 at 06:10

    What's crazy is you could also do

    const multiplier = factor => x => x * factor

    In fact, if you wanna get extra crazy, you can keep nesting the pattern as far as you want.

    I seriously love JS.

  21. Edgar Hernandez Aguirre
    February 28, 2020 at 06:10

    awesome, a simple way to explain it

  22. T Rex
    February 28, 2020 at 06:10

    What ide do you use for js programming?

  23. Elbek Khaitov
    February 28, 2020 at 06:10

    You have very strict and serious description:
    "In this video, I discuss "higher order functions" in JavaScript."

    But, in the video it is opposite. Smoke weed everyday

  24. Elbek Khaitov
    February 28, 2020 at 06:10

    What this guy smokes before every video? Anyway good job

  25. MrBrN197
    February 28, 2020 at 06:10

    Can get even more cryptic if you want… let multiplier = factor => x => x * factor;

  26. Chris Manuel
    February 28, 2020 at 06:10

    hey thanks for this!

  27. Chris Manuel
    February 28, 2020 at 06:10

    arrow functions corrupt my brain

  28. Amirul Idzham
    February 28, 2020 at 06:10

    The code executed is 4 x 2 right? not 2 x 4 isn't? at 15:10

Leave A Comment

You must be logged in to post a comment.