Skip to content

Instantly share code, notes, and snippets.

@Lahirutech
Created June 22, 2021 18:13
Show Gist options
  • Save Lahirutech/7fa09d0ea476221e06a913ad9c83a486 to your computer and use it in GitHub Desktop.
Save Lahirutech/7fa09d0ea476221e06a913ad9c83a486 to your computer and use it in GitHub Desktop.
function doTogether(firstCallback, secondCallback){
firstCallback(); //execute the first function
secondCallback(); //execute the second function
console.log('Fullstack Journey');
}
function LeanFrontEnd() {
console.log('Start with js');
}
function LearnBackend() {
console.log('start with Node');
}
//pass in the callbacks to do them together
doTogether(LeanFrontEnd, LearnBackend);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment