Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Introduction to Callbacks, Broadcasters, and Listeners

via egghead.io

Overview

Before we dive deep into the pattern of composing callbacks and closures, we need to take start with the definitions and basic building blocks that we will be using for the rest of the course.
You'll be able to answer questions like:
What is a Closure?
What is a Callback?
Why does Callback Hell happen and how can we handle it?
We will see that by establishing a contract between functions and holding to the pattern that is established, you will have gained a lot of power and flexibility in writing reusable, robust functions.
You're in Section 01 of Composing Closures and Callbacks in JavaScript.

Syllabus

  • What Is a Closure in JavaScript
  • What Is a Callback in JavaScript
  • Can a Function Be a Closure and a Callback?
  • Compose Closures and Callbacks to Create New Functions
  • Defining the Broadcaster and Listener Relationship
  • Time is a Hidden Variable in JavaScript
  • Solve Callback Hell with Composition
  • Passing Values Through Callback Hell

Taught by

John Lindquist

Reviews

4.3 rating at egghead.io based on 94 ratings

Start your review of Introduction to Callbacks, Broadcasters, and Listeners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.