Defining the Broadcaster and Listener Relationship

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

It's time to set up the core of the pattern we'll be using throughout the entire course. Establishing a contract between functions and rules that we'll follow will allow us to use and define many different functions interchangeably. For many people, "pass a function to a function" is a difficult new concept, but with repetition and using this pattern in many different scenarios, we hope to make it very comfortable so it can be a useful pattern in your JavaScript tool belt.