Bad For Education - Coding Tips For The Junior Developer & Beyond

This Is Crazy, But Here's A Podcast, So Callbacks, Maybe?


Listen Later

Today we discuss JavaScript Callbacks! What is a Callback?

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.

For example, paste this code block in your editor and try it!

function greeting(name) { alert('Hello ' + name);}function processUserInput(callback) { var name = prompt('Please enter your name.'); callback(name);}processUserInput(greeting);



Resources

  • MDN Callback Function Definition


Connect With Us!
Instagram: @badforeducationpodcast
Twitter: @badforedupod
Email: [email protected]

Send us questions! Or say hello to  us via email!

Want a free $20 Amazon gift card and to start your own podcast with Buzzsprout?
It's as simple as one click in our link below. Get started today, and have access to their extensive network and assistance. Podcasting isn't hard when you have the right partners!
Click our link here

...more
View all episodesView all episodes
Download on the App Store

Bad For Education - Coding Tips For The Junior Developer & BeyondBy Andrew Ly & Jason Yata