Created
December 12, 2017 18:40
-
-
Save enricopolanski/6ca3f8f3caee9b164bfd3b2b0b9c2290 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
let x function(){ | |
console.log("i am called from inside a function") | |
}; | |
let y = function(callback){ | |
console.log("do something"); | |
callback(); | |
}; | |
y(x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment