Understanding Asynchronous JavaScript Callbacks Through Household Chores
Stephen Mayeux
3957

Nice job! Very practical and simple!

I hate to pick nits but maybe you can correct for those who might have missed the details… “callback” is passing no parameters therefore err can never be set and we’re putting “undefined” in the dryer. Maybe change the call to …

//errorObject will be set if there is an error

//wetLaundry is an object holding the wet (but clean) clothes

callback(errorObject, wetLaundry);

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.