Establish Callback and Closure patterns Around Async Browser Behaviors

33m
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.8
258
people completed
Bookmark
Download
RSS

JavaScript is full of inconsistent APIs. Wrapping those APIs in functions allows you to have full control over how to configure them and make them more reusable.

This becomes even more beneficial when dealing with the async nature of JavaScript. You'll learn how a broadcaster is a function that wraps another function (which we call listeners) and modifies the behavior. We will build up this pattern in a way that allows you to compose broadcasters together making your code more reusable.

You're in Section 02 of Composing Closures and Callbacks in JavaScript

Instructor

John Lindquist

John Lindquist is a co-founder of egghead.io John has spent the majority of his career developing Rich Web Applications. Before starting egghead.io, John worked at JetBrains as a WebStorm evangelist, and before that he was a Technical Architect at Isobar leading large teams in building the latest and greatest in web apps for the Air Force, HBO, and Bloomberg. Learn more about John's story with egghead here.

Course content (10 lessons)

    illustration for Establish Callback and Closure patterns Around Async Browser Behaviors