Тёмный

JavaScript Higher-Order Functions in 8 Minutes - The map() method Reimplemented 

Ijemma Onwuzulike
Подписаться 3,9 тыс.
Просмотров 451
50% 1

Higher-order functions in JavaScript allow developers to organize and compose their code in many different and flexible ways. The reason why higher-order functions are even a possibility in the language is that functions are treated just like any other values like strings and arrays.
A higher-order function is a method that either takes in another method as an argument or returns a method. Because of these two attributes, higher-order functions make it possible for developer to not only abstract values (avoiding repeated values) but also actions (avoid repeated actions).
In this video, I'll show you why it's important to understand and use higher-order functions by walking you through an example where we refactor our code to use the function. On top of that, I'll walk you through reimplementing the popular array map() method so you get a better understanding of how the method works under the hood.
🎬 Subscribe to the channel! - / @ijemmaonwuzulike
Timestamps:
0:00 Intro
0:43 What is a Higher-Order Function?
1:18 Higher-Order Function Examples
3:04 The Importance of Higher-Order Functions
4:22 Refactor Code with Higher-Order Functions
5:28 Reimplement the map (Higher-Order) Method
7:16 How to use Callbacks
== Let's Connect ==
🐦 Twitter - / ijemmaohno
== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
#javascript #webdevelopment #softwareengineer

Наука

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

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@abahiduh3246
@abahiduh3246 11 месяцев назад
IJ, you are a sweet smart intelligent lady....As I started understanding advance js.... you expla..is explicit
@nimanizky
@nimanizky 4 года назад
Seriously great explanation
@IjemmaOnwuzulike
@IjemmaOnwuzulike 4 года назад
thank you so much ✨
@cryptodeveloper
@cryptodeveloper 4 года назад
Your presentation is top notch!!
@IjemmaOnwuzulike
@IjemmaOnwuzulike 4 года назад
thank you so much 💜
@tonytony-fc6gq
@tonytony-fc6gq 4 года назад
THANK YOU very MUCH
@calvint678
@calvint678 4 года назад
Again, didn't know you could do that. :D
@IjemmaOnwuzulike
@IjemmaOnwuzulike 4 года назад
hype that I can share something new 🙌🏾
@hansschenker
@hansschenker 2 месяца назад
you use the word 'method' for a function, that is not really correct. An Object or a Class can have a method, a function lives on its own a is called a Function
Далее
Куда Анджилиша снова летит???
00:16
Dear Functional Bros
16:50
Просмотров 472 тыс.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
The JavaScript Survival Guide
14:47
Просмотров 718 тыс.
Use Arc Instead of Vec
15:21
Просмотров 137 тыс.
I Feel Bad For New Programmers
19:12
Просмотров 425 тыс.
The purest coding style, where bugs are near impossible
10:25
Why Signals Are Better Than React Hooks
16:30
Просмотров 459 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,1 млн
I've been using Redis wrong this whole time...
20:53
Просмотров 334 тыс.
but what is 'a lifetime?
12:20
Просмотров 61 тыс.
iPhone перегрелся, что делать?!
1:01