Created
September 15, 2017 14:39
-
-
Save cdaz5/35caa5c9c9d1fcaa9c3348625a75a805 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 test() { | |
| let x = 5; | |
| function closure() { | |
| console.log( x ); | |
| } | |
| return closure; | |
| } | |
| let checkMeOut = test(); | |
| checkMeOut() // 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment