Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created April 24, 2016 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandromoreira/42f18d7162a3494d9b3487fc734e6503 to your computer and use it in GitHub Desktop.
Save leandromoreira/42f18d7162a3494d9b3487fc734e6503 to your computer and use it in GitHub Desktop.
// 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