Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function dostuff(callback) {
task1(function(x) {
task2(x, function(y) {
task3(y, function(z) {
if (z < 0) {
callback(0);
} else {
callback(z);
});
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment