Functions INSIDE Functions Explained Easy | CallBack Functions in JavaScript

Veröffentlicht am: 30 Juli 2023
auf dem Kanal: Diogo Veigas
44
4

In this video, we'll cover all things related to functions inside functions, call back functions, and higher order functions. We'll dive into the different types of functions, including normal and arrow functions, and show you how to create and use call back functions.
You'll also learn about real-world examples with in-built JavaScript array methods like forEach and map. We'll explore how to create higher order functions, including the two types: those that receive a call back and those that return a call back.
But that's not all! We'll also go over the best practices for writing and using callback functions, including naming conventions and avoiding asynchronous pitfalls.
By the end of this video, you'll have a strong understanding of how to work with functions in JavaScript and how to use them to make your code more efficient and effective. So buckle up and get ready to take your JavaScript skills to the next level!

00:00 Introduction
00:07 Summary
00:23 What is a "higher order function"
00:36 What is a "callback function"
01:03 Callback function example
01:57 What are functions in javascript
02:26 Function example
02:50 2 types of functions
03:00 Normal function
03:44 Arrow function
05:17 Set time out function
05:57 Real world example - Show books a list of books
10:02 Real world example - Temperature conversion
13:15 Creating a higher order function
13:25 Creating a higher order function that receives a function
15:07 Creating a higher order function that returns a function
18:43 Best practices
20:03 Conclusion

#javascript #callbacks #functions

music by: creatormix.com
music also by: @FreeToUseMusic​


Auf dieser Seite können Sie das Online-Video Functions INSIDE Functions Explained Easy | CallBack Functions in JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Diogo Veigas 30 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 44 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!