Last active
August 29, 2015 14:13
-
-
Save seanstrom/e57771dbb5dee57a53e4 to your computer and use it in GitHub Desktop.
Async JS/Node - Sequential Callbacks Example - Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Part 2 | |
var username = 'seanghagstrom' | |
findLikesForPostsByUsername(username, function(err, totalLikes) { | |
if(err) { | |
console.error(err) | |
} else { | |
console.log(username + ' total number of likes: ' + totalLikes) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment