Skip to content

Instantly share code, notes, and snippets.

@pushcx
Created August 14, 2014 03:05
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 pushcx/1b0d194cc586484d8d3d to your computer and use it in GitHub Desktop.
Save pushcx/1b0d194cc586484d8d3d to your computer and use it in GitHub Desktop.
/*
Closures as Family
Hi, I'm Peter Harkins - @pushcx
notes will be online at http://gist.github.com/pushcx
*/
function mom() {
var necktie = { ... };
function peter() {
wear(necktie);
}
}
function busha() {
var meatloaf = [ ... ];
function mom() {
function peter() {
cook(meatloaf);
}
}
}
function mom() {
var programming_language = "cobol";
function peter () {
programming_language = "ruby";
var programming_language = "ruby";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment