Created
July 20, 2020 20:39
-
-
Save kermit-klein/5263826e31f0287c6ed7d542f1f6ee06 to your computer and use it in GitHub Desktop.
closure_example_1
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
const outer = () => { | |
let outerData = "This is outer"; | |
return () => { | |
let innerData = " and this is inner"; | |
return outerData + innerData; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment