Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created February 24, 2018 14:20
Show Gist options
  • Save haingdc/768daee4d6285876153f58eac7eca1df to your computer and use it in GitHub Desktop.
Save haingdc/768daee4d6285876153f58eac7eca1df to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 1
var doSomething = function(thing) {
thing();
}
var sayBigDeal = function() {
var message = "I’m kind of a big deal";
log(message);
}
doSomething(sayBigDeal);
// I’m kind of a big deal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment