Created
February 19, 2020 23:14
-
-
Save deepal/d6f5a079b1f6ced462c67c632bf128bb to your computer and use it in GitHub Desktop.
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
const sum = (a, b, callback) => { | |
callback(a + b); | |
}; | |
sum(1,2, (result) => { | |
console.log(result); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment