Skip to content

Instantly share code, notes, and snippets.

@danemacaulay
Last active August 29, 2015 14:08
Show Gist options
  • Save danemacaulay/e1d454922871fe176f68 to your computer and use it in GitHub Desktop.
Save danemacaulay/e1d454922871fe176f68 to your computer and use it in GitHub Desktop.
?/
function passedThing () {
console.log('passedThing');
}
function anotherThing () {
console.log('anotherThing');
}
function changeThing () {
passedThing = anotherThing;
}
changeThing();
passedThing(); // anotherThing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment