Created
September 13, 2019 08:10
-
-
Save jakes2255/9bfede573ccbf844a24feb9f52aa28ee 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
function first(temp,callBack){ | |
setTimeout(function(){ | |
console.log(temp); | |
callBack(); | |
},500); | |
//callBack(); | |
} | |
function second(){ | |
console.log(2); | |
} | |
first(1,second); | |
//outputs 1 and 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment