Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
example
function double(number, callback){
if(number > 2){
callback(null, number * 2)
} else {
callback(new Error("number should be more than 2"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.