Callbacks with Arguments

This is how you can pass an argument to a call back that takes one. An example using addEventListener: Remember that […]

Read More

Timers

One-Off Timers with setTimeout Where callback is a function and delay is the number of milliseconds until the callback is invoked. Repeat Timers with setInterval Where callback is […]

Read More

Anonymous Functions

An anonymous function is a function without a name.Converting sayHello() function into an anonymous function: Becomes: This is also know as inlining […]

Read More

Intro to Callback Functions

Function vs Callback Function Callbacks are just functions, but instead of being called by the programmer explicitly, they are called […]

Read More