Тёмный
No video :(

Higher Order Functions in JavaScript Explained Simply 

Teddy Smith
Подписаться 65 тыс.
Просмотров 7 тыс.
50% 1

Higher Order Functions & Callback Functions in JavaScript Explained Simply
Linkedin: / teddy-smith-015ba61a3
Website: www.teddysmith.io
Github: github.com/ted...
In JavaScript, a higher-order function is a function that takes one or more functions as arguments, or returns a function as output. These functions are a powerful feature of the language that allow you to write concise and expressive code.
The best way to learn higher order functions (and likely the most “real-world”) is to look at “map()” and “filter()”. Both take functions as arguments where the function is applied to each element in an array.
Map
For example, consider the map function, which is used to apply a function to each element of an array and return a new array containing the results.
The map function is a higher-order function because it takes a function as its argument, in this case the function to apply to each element of the array.

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@_onlyFran_
@_onlyFran_ 7 месяцев назад
+1 subscriber, There is no way to make a simpler explanation. Thank you so much.
@TeddySmithDev
@TeddySmithDev 7 месяцев назад
No prob. Sweet name lol
@LizyAd
@LizyAd Месяц назад
You just gained a subscriber!! Thanks for teaching!
@julieyeaeun
@julieyeaeun Год назад
I'm mad I didn't find your channel sooner. God tier instructor... thank you!!!
@alexnorby4987
@alexnorby4987 3 месяца назад
good lord, all I had needed was the explanation of func vs func(). It all makes sense now, thanks!
@mohabdulai7238
@mohabdulai7238 10 месяцев назад
Wow 👏.. You've just simplified everything to my understanding. I'm your new subscriber.
@benbetterby6456
@benbetterby6456 2 месяца назад
Awesome!!! Thank you for making this video!!! :)
@eyoutube1
@eyoutube1 Год назад
You, sir, now have a new subscriber. Great lesson, thank you!
@andriibibik39
@andriibibik39 Год назад
That's exactly what I was looking for. Thanks!
@KiteDuo_CH
@KiteDuo_CH 9 месяцев назад
Awesome explanation! Thank you very much! The explanation with the return()() helped me a lot :D
@caseyspaulding
@caseyspaulding Год назад
Haha you make these video’s entertaining and educational 👍
@TeddySmithDev
@TeddySmithDev Год назад
I notice when I say something crazy in the beginning the watch time goes up Lmao
@caseyspaulding
@caseyspaulding Год назад
@@TeddySmithDev yea man I think you are onto something. Lol. Then I learn about roided out function passing to another function. Pretty cool haha
@TeddySmithDev
@TeddySmithDev Год назад
lmao
@petrapaul2434
@petrapaul2434 Год назад
Thank you so much ! ❤
@benejix
@benejix Год назад
I love you for this bro.
@grahamtech
@grahamtech 7 месяцев назад
this actually made it more confusing
@grahamtech
@grahamtech 7 месяцев назад
nvm it actually makes sense now lol
@TeddySmithDev
@TeddySmithDev 7 месяцев назад
I real life laughed lol
@vishnu2407
@vishnu2407 26 дней назад
The life of a developer basically
@halalmeatshophk
@halalmeatshophk 8 месяцев назад
you just explained how it is done. but the important thing to know is why is it done this way? wrapping a function using another function, why? what r the benefits? it seems extra useless step.
@TeddySmithDev
@TeddySmithDev 8 месяцев назад
so that you can execute code within code. also, the code can be modified and changed to whatever you want because it is being passed in. instead of hard coding it you just pass it in.
@DarrylHebbes
@DarrylHebbes 11 месяцев назад
Partial application
@ExpatTraderFX
@ExpatTraderFX Год назад
G0D approves
Далее
JavaScript Hoisting Explained Simply
6:30
Просмотров 3,7 тыс.
JavaScript Function - What's your Function?
12:27
Просмотров 182 тыс.
ЛОВИМ НОВЫХ МОНСТРОВ В LETHAL COMPANY
2:42:22
Higher Order Functions - JavaScript Tutorial
10:10
Просмотров 65 тыс.
The Most Legendary Programmers Of All Time
11:49
Просмотров 551 тыс.
Callback and Higher Order Functions in JavaScript
16:41
JavaScript Pro Tips - Code This, NOT That
12:37
Просмотров 2,5 млн
JavaScript Arrow Functions & "this" Explained Simply
8:48
ЛОВИМ НОВЫХ МОНСТРОВ В LETHAL COMPANY
2:42:22