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