Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sunkibaek/253899c2e460b81e18c8a55fc50b7126 to your computer and use it in GitHub Desktop.
Save sunkibaek/253899c2e460b81e18c8a55fc50b7126 to your computer and use it in GitHub Desktop.
const arrowFunction = () => {
console.log("== Inside of arrowFunction!");
};
const regularFunction = function () {
console.log("== Inside of regularFunction!");
};
const main = (firstCallback, secondCallback) => {
console.log("== Inside of main!");
firstCallback();
secondCallback();
};
main(arrowFunction, regularFunction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment