Course lesson

What Is a Callback in JavaScript

If you've used addEventListener, Array.filter, or many other methods in JavaScript, then you've already used a callback. Callbacks are often invoked inside of APIs of libraries where we don't get to see them called. This course explores internals and patterns...

Duration
2 min
Access
Pro
Transcript
Available

If you've used addEventListener, Array.filter, or many other methods in JavaScript, then you've already used a callback. Callbacks are often invoked inside of APIs of libraries where we don't get to see them called. This course explores internals and patterns where we have control of invoking the callback and discovering the features callbacks enable.