-
-
Save leandromoreira/42f18d7162a3494d9b3487fc734e6503 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
// set to vars | |
var hi = function(name) { | |
return 'Hi ' + name | |
} | |
// rebound to other var | |
var greeting = hi | |
// an array of fns | |
var greetings = [hi, greeting] | |
// passed as arguments | |
var execIn1Second = function(fn) { | |
setTimeout(fn, 1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment