-
-
Save iam-peekay/f03ba0ff7499d78e44fd262be2ff4c61 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 x = 10; | |
function foo() { | |
var y = 20; // free variable | |
function bar() { | |
var z = 15; // free variable | |
return x + y + z; | |
} | |
return bar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment