Skip to content

Instantly share code, notes, and snippets.

@seanstrom
Created January 20, 2015 06:09
Show Gist options
  • Save seanstrom/f332899406594683249a to your computer and use it in GitHub Desktop.
Save seanstrom/f332899406594683249a to your computer and use it in GitHub Desktop.
Async JS/Node - Sequential Async.js Example - Part 2
// 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