Created
December 7, 2014 18:42
-
-
Save devdays/1a112480a553ce7e7b1d to your computer and use it in GitHub Desktop.
Object JavaScript - Closure Example
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
function f(x) { | |
function g() { | |
return x; | |
} | |
console.log(g()); | |
} | |
f(5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment