Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Created June 17, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajcrites/ee2a72a785b865fe49a1 to your computer and use it in GitHub Desktop.
Save ajcrites/ee2a72a785b865fe49a1 to your computer and use it in GitHub Desktop.
function runner(cb) {
if (Math.round(Math.random())) {
return void cb("error");
}
return void cb();
}
function callback(err) {
if (err) {
console.error(err);
}
return "this returns something";
}
console.log(runner(callback));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment