[Javascript Functions] Callback Functions in Javascript Explained

4 years ago
6

An aspect of javascript functions that many beginners find confusing is the concept of callback functions. In this video, we'll walk through a simple example and try to explain exactly how callbacks work and when you should be using them.

Callbacks are a powerful feature of javascript that allow us to execute functions only once another function has finished executing.

This is important for things like waiting on network requests and longer running tasks to finish. You'll see callback functions all over the place once you start working with Javascript, so it's important that you get a good handle on how they work. 👊 Helpful Links 👊

Free E-book:
*Power Portfolio* - How to stand out... even if you're just getting started: https://bit.ly/2ylvdcb

Building a Messenger app in Rails 6: https://www.youtube.com/watch?v=s3CmHhDjuWc&t=18s

Action Cable Basics in Rails 6: https://youtu.be/t9iubpbqmnM

Building a Link Shortener with Rails 6 (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9WGy9WMf-44DXHB_7aWwJMc

Building a Stock Market Tracker with React JS (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9VOBgwZ82D9kjQ_QtM5R4u5

Loading comments...