Higher Order Functions - Design Patterns in JavaScript

preview_player
Показать описание

A Higher Order Function (HOC) is a function that takes are least one or more functions as arguments or a function that returns a function as its result.

## How is this possible
* In JavaScript, functions are first-class citizens
* Functions can be passed around as values, even to other functions
* Composition - Take lots of functions and compose them together to build features

## Why use higher order functions?
* Makes code more reusable
* Can make your code more readable by abstracting details away

## You've used higher order functions before

🌎 Follow me here:
Рекомендации по теме
Комментарии
Автор

You are the best teacher on YouTube !❤❤! Please keep going !💪💪

kirakira
Автор

Great video, been enjoying this series so far. Just one suggestion: collapsing code blocks during the video can make it annoying to keep track of what's going on. Maybe make the terminal a bit smaller (or even pin it to the right instead of bottom) and show all the code?

MrKeepItTrill
Автор

What an amazing video mate, keep it up. love the concept.

noumanshoaib
Автор

Thanks, Tom! Great lesson as usual! Can I ask you to commit code from lessons or make the code smaller to see everything, please, it's a little bit hard to follow the whole process when I can't see the entire code simultaneously? 🙏

sergiyrudenko