Higher Order Functions - JavaScript Tutorial
Vložit
- čas přidán 28. 06. 2024
- What is a Higher Order Function in JavaScript?
Why do we need Higher Order functions?
And how can you use them to your advantage?
Higher Order Functions from the series "10 Things JS Developers Should Know"
by ColorCode.io, Sina Jazayeri
Full playlist here: • 20 Things JavaScript D...
This is episode 8 in a 10 part series I’m calling 10 things javascript developers should know but probably don’t. In this series, we’re going to cover some of the most fundamental and important parts of JavaScript that most of us don’t actually know, and barely touch. Today, for episode 8, we’re talking about Higher Order Functions, why they exist, and how to use them. Episode 8: Higher Order Functions. Let’s go!
All the code from this series is available here:
github.com/ColorCode/js-10-th...
0:00:00 Intro
0:01:11 What is a Higher Order Functions?
0:02:28 Example: setTimeout
0:03:33 Example: Array.filter
0:04:50 Example: Iterators and Loops
0:06:09 Chaining functions together
0:07:29 Function Factory
0:08:54 Conclusion
Episode 8: Higher Order Functions - JavaScript Tutorial 💻🎉
what IDE do you use for these videos?
@@simplesolutions289 Chrome DevTools
4:45 BTW, I remember seeing on a JavaScript video that it's bad practice to use array notation to get a particular character from a string like you've done here with "n[0]". I don't remember the details of why it's bad. But it was suggested that it's better to use one of the string functions like n.slice(0,1) or n.charAt(0).
I don't understand why you don't have a lot more subscribers. I have went through several videos and found them very useful .
Thank you :)
He is good indeed.
Sina, just a note of appreciation - your content and presentation are immaculate. You are one of the few educators who can employ humor so it contributes rather than detracts.
Thank you so much
Currently 8 weeks into a web development bootcamp and i'm extremely lost....your videos are really helping me out man thank you!
That's awesome to hear! Good luck.
This series is very well done, and extremely clear and useful. Can't wait for the episode on closures.
Thank you Alec!
Would love to have more and regular videos from you. Because The Channel is A CLASSIC .
i like the way you explain in detail and with examples and the way the videos are made, very modern, clean and each topic of the videos gets a "separate" part of the video, making it easy for us viewers.
Thank you. Glad you found it useful.
This is the first video I watch from your channel and I have to say it is really good. The animations, explanation and everything. Thank you so much
Thanks Sofia
Loving this series, PLEASE DO MORE!
A lot more coming next month
these edits are so clean and entertaining, i wish more people saw you
I appreciate that
This is a great explanation, thank you Sina. You are doing a great job, so please don't stop.
👍
I wasnt knowing for months like what it is to use this keyword with arrow functions.I legit didnt understand it.But now seeing your explaination made it all clear to me.You are a gem.
Thank you. Glad it helped.
All your videos are incredible useful, and super easy to understand! Thank you so much :)
I really love the way you connect current concepts to previously taught concepts and many different ways to do the same thing. really man hatf off to you and well yeah merry christmas to you
You're very welcome!
Appreciate the bite sized approach to this content. Sometimes when you are researching something and you're staring down the barrel of a 45 minute video it can be defeating.
Cheers :)
Haha I hear you!
Love the animations/transitions
Love your videos man! You explain things very clearly and concisely while also keeping it fun at times with your jokes. Brilliant channel please keep it going until the end of time :)
Thanks! No plans to stop any time soon :)
Great work brother! Keep it up. Us newbs really appreciate this stuff, especially when it isn't ultra-dry/tedious like a lot of these videos tend to get.
Thank you
Not sure if you'll see this, it's a year old video.
I'm currently learning web development and your videos are one of the greatest resources I found.
You deliver the info in a light yet effective way.
Hopefully you won't give up on this channel and would continue publishing those awsome videos.
Of course I see your comment :) I have no plans to stop posting videos. Thank you for taking the time to write.
This was extremely helpful, the examples were awesome and the way you explained them made them all click for me. Thanks!
Great to hear!
Crazy good quality! Keep it up mate
Appreciate it!
great production quality and explanation! Made it easier to grasp.
Thanks! Glad to hear it
Very concise, and very well explained - good job and thanks!
👍
Really enjoying the 10 part series. Just finished an engagement and starting to interview for next engagement and studying like crazy to prepare for all those interview questions. Yes, prototype and classes came up in one interview and I stumbled all over the answers. I'm from New York City, enjoyed seeing the city out of your window. Miss it. Moved to Tampa 5 years ago and looking forward to moving back.
I miss my view too, although I'm still in NYC. Best of luck to you on your interviews. Let me know if I can help.
The best explanation ever. Plus, a really good vibe.
🕺🏻
Another useful, informative and so nice to follow video from the sequence! I like your new studio, it looks, how to say, open and brighter, miss a little bit the live coding. I am looking forward for the next "Closures" video. Wish you all good! : )
Closures video posted today: czcams.com/video/aHrvi2zTlaU/video.html
Very well explained!
Very clear and concise. Many thanks !
🙏
great video I had to subscribe because the production quality was so good thank you so much for a tutorial that a human can understand
You’re welcome :)
I just found your content and this is the first video I watch! Actually I agree with the last comment... why don't you have more subs!? Thanks for the amazing explanation! Quite easy to understand! Hugs from Brazil!
Welcome aboard! Sending you hugs back to Brazil from New York City.
Yeah, I'm a Brazilian guy and i really liked this vídeo, thanks a lot!
Welcome back!
Good to be back :)
Video Quality is really top notch! First thing I noticed, now to learn
Thank you. Good luck!
Wow! This really takes away the mystique of higher order functions for me after years of programming in TS. How they work is obvious to me now, hence this video did its job. I just never really gripped how functions sent in as arguments run the code for each element in a collection, but now seeing you write these higher order functions, I see how they do the processing in a black box just like they would for any other primitive argument type. Thank you!
Thanks for a great comment! Glad the video was helpful for you.
Loved it ❣️
Best channel: it was very good Sina
You earned my sub! Thank you for this clear explanation
Awesome :)
This is a god-tier tutorial👏
this is a god-tier tutorial
You guys deserve way more attention.
Thanks LooneyTune. Great name by the way 👍
Thanks for another great video!
You're welcome Chris
Great video, thnx for such content
wow .. That was a perfect video which was totally engaging and crystal clear.
Glad it was helpful!
Good fellas ❤ I just watched it awhile ago, what a coincidence!
Thanks for sharing!
Thanks for watching!
best explanation ever
i love this dudes videos lol , good shit big dog
Amazing and Informative as always .......Good luck
Thanks!
I'm studying to be a full stack developer, based in South Africa. I've seen a lot of webdev tutorial videos online but I'm yet to see someone who does it better! 👌
Thanks and good luck with your studies!
How the hell does this video have less than 10k views? You're sooo good at explaining thi stuff, you deserve way more recognition. And btw, I'm subbing!
Thanks for subbing!
Like howwww????
Awesome Goodfellas reference
🇮🇹🇺🇸
thanks for the video
Nice to discover you sir! fantastic tutorial
Thank you
Random but i definitely had "Coffee shop radio 24/7 lofi hip hop beats" on while watching this and it made it even better. regardless, thank you for being eloquent and still throwing some jokes in.
You’re speaking my language. Love lofi beats when coding 🎧
It was really useful I was doing challenges in leetcode and there are many challenges related to HOF You earned a subscriber
Awesome, thank you!
The essentials of Higher Order Functions in JavaScript; so succinctly explained. Thanks, Sina
{2023-06-21}
Helpful.
Please do a series on basics of React or React Native. But I guess then the audience will be very limited as you are still growing, but your work deserves a lot more views, fantastic work!!!
Great suggestion
I like the new format with no code typing. I did not even notice it until you said something about it. I think you might be on to something here.
thanks for your tutorial.
👍
I really liked the old setup with the window ALOT better. Also your voice sounded better in the old setup. In the new one you clearly hear the resounding from the walls.
Unfortunately I won't have access to the old studio anymore :( Good catch on the audio. The space is so new and the sound acoustics haven't been installed yet.
Awesome 👏🏾
Thank you brother Kato!
Awesome show!
Thank you
You got yourself a new subscriber! I'm having a hard time with functions and this somehow helped me understand ( still need more practice tho, any suggestions?)
Build build build. That's the best way to learn.
Youre the most underrated youtuber on the youtubes
Underrated comment! Thank you
Great video. New pre-created text is easy to follow but I much prefer the live coding because it shows examples of how you think through things. Also miss the NYC window, it made it feel informal and comfortable, but I'm sure you had practical reasons for the shift.
Thanks Dave. I’m actually just a block away from the old studio but unfortunately I had to move on. Thanks for the feedback.
still in love with background music:))))
Great videos thank you. Just one thing I think could make them better would be if they were shorter/more concise.
your voice beautiful , your joking is funny , your explanation is great, every time I see you - even in something I knew before - I benefit from new and very useful information and some funny as well😅 , Thank you Sina❤
Thank you
THIS content is better than my bootcamp's content
Glad to hear it
Why the hell don't you have more subscribers?? Your content is soo good... Loved it. Subscribing
Thanks for subbing!
guy deserves more subs!
Ty!
Thanks 🙏
Great video! Very helpful. Also, I like your taste in films. Dark Knight and Goodfellas are great. ;)
Haha thanks!
عاشقتم سینا . تو بهترین استاد جهانی بهت افتخار میکنم
nice clean background - great info on video
Thank you!
Just stumbled my way here.. was looking for a high order function deff and was prepared for a boring sleepy video... but boy was I wrong.
Btw... I will look over your playlist... but I think you should create an entire course... if you can and have the time of course
Hello and very well explained topic
How can you build your own higher order function
Can you make a video about making our own higher order function like map or filter or reduce
enjoyed learning!
Could you also explain in more detail function factories?
thanks alot
👍
Higher order functions FTW. Very handy in combination with Redux-Observable with or without React 😁
Yes! The functional master has spoken!
finally someone i can understand
🙏
I've run into many tutorials describing what callbacks are but don't go into the specifics of why it's needed. I've always struggled to find the value of a callback; for instance, why do functions like setTimeout(), array methods, addEventListeners, need a function as a parameter instead of using primitive types to tell it what to do? Thanks so much for explaining this. Cheers!
Glad it helped!
@@ColorCodeio Just to clarify, if a function by definition is what something does, how should we see primitive types as?
As usually, super informative episode. Funny too, just not sure how much joe pesci would agree there ;)
Haha thanks dude!
The way you explain code is easier to understand. I request you to record a content about React stuff if possible. Happy coding.
Maybe soon
he deserves 1 million subscribers
Soon :)
Thanks Dear So much Funny
This Channel is like Oasis in the big desert called JS🙃.
Just a suggestion sir, along with youtube reels, you can post your linkedin account also here to get more audience attention.
Like the new studio, or old I dunno 😅😂
Thanks for the explanation.
🙏
I'm pretty sure you're the coolest programmer ever.
Haha I doubt it but thank you!
عالی بود ایول
Merci
God level stuff!
God level comment
Thanks “STEVE”
ThankYou sir,
May i know how to prepare those stunning animated ppt/slides...
I manually create the animations myself in Final Cut Pro and Apple Motion
This channel is soooo underestimated
Thank you 🙏
function call stack is where i confuse all the time in HOF
Do you have testing code videos?
Why so serious 😂😂😂, thank you for ur videos it helped me alooot.
King
good stuff
🤘