Last active
June 7, 2022 12:01
-
-
Save dikshadhote/2224f768b9649366540c368bf91a80bf 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 outerFunc(){ | |
var a=7; | |
function innerFunc(){ | |
console.log(a) | |
} | |
a=100 | |
return innerFunc; | |
} | |
var output= outerFunc(); | |
console.log(output); | |
output(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment