Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Kathryn Lawhorn
3,645 PointsCallback functions
Learning Javascript and node.js, and am using callback functions without fully understanding them. Any recommendations for easily digestible content (treehouse or otherwise) that explains them in a simple and basic way?
Tutorial videos, fundamental drilling techniques, or good metaphors etc.
Thanks in advance!
3 Answers

Chris Shaw
26,663 PointsHi Kathryn Lawhorn,
Have a read of the below articles, they should give you some valuable insight into callback functions.
- http://www.impressivewebs.com/callback-functions-javascript/
- http://www.dustindiaz.com/javascript-curry/
Happy coding!

Erik Krieg
43,038 PointsFor me I did not completely understand it until I wrote my own function that used a callback. Chris' first link goes over creating such a function in vanilla JavaScript. I suggest trying to make a few other random little functions that also use callbacks to see if that helps your understanding! ♥

nathan goel
7,281 PointsYou can always try these: https://teamtreehouse.com/library/why-callback-functions