filmov
tv
Functional JavaScript Programming 8 - Callbacks (WITH EXAMPLE)

Показать описание
What are Callback Functions in JavaScript?
How to get started in Functional Programming on JavaScript?
In this video tutorial, I talk about the basics of Functional Programming by bringing in the Callback Functions. What is it? Find out in the video.
CALLBACKS
==========
1. Callbacks are functions that are passed to other functions. Logic is passed in this way.
2. Used a lot in functional programming, this is where anonymous functions are highly implemented
3. Because functions are first-class objects, we can pass a function as an argument in another function and later execute that passed-in function or even return it to be executed later.
4. The most widely used functional programming technqiue in JS
5. Derived from the functional programming paradigm
6. Callback functions are passed as parameters, the function is called inside another function, where it executes
7. Multiple callback functions are allowed to be passed, as parameters in one function
8. Do not repeat code (DRY - do not repeat yourself)
9. Have better maintainability
10. Have more readable code
11. Have more specialized functions
12. Implement better abstraction - show only the essential features
Callback Functions in Functional JavaScript Programming by Rocky DeRaze (WITH EXAMPLE)