Created
June 13, 2014 07:05
-
-
Save texel/33972773f494648b7c9e 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
var returnMeAFunction = function () { | |
var integer = 1; | |
var string = "Pancakes"; | |
var f = function () { | |
console.log("integer is " + integer + " and string is " + string + "."); | |
} | |
return f; | |
} | |
var newFunction = returnMeAFunction(); | |
newFunction(); | |
// integer is 1 and string is Pancakes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment