Let’s talk about callbacks! What are they and how do we use them…

What are Callbacks?

A Callback is just a function that gets passed to another function as an argument. The function that takes the callback as an argument can call the callback function when it needs to! Now, this is confusing myself, because writing words to explain something is not my strongest skill! Just remember that a Callback Function is simply a function, it just gets passed to another function.

How do we use them?

Thats a good question! I have good questions. Okay, so let’s define a function that takes three arguments, the first two…

Marshall Slemp

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store