Created
February 24, 2019 04:45
-
-
Save vivektikar25/61e6d3dd1bf7f28330f8b61eb2f7f752 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
function outerFunction() { | |
var count = 10; | |
return function innerFunction() { | |
console.log(count); | |
}; | |
} | |
var result = outerFunction(); | |
console.dir(result); | |
result(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment