Created
June 6, 2022 17:35
-
-
Save dikshadhote/bddc0cf8eee5cbcc639b2116a43c9dba to your computer and use it in GitHub Desktop.
lexical environment
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) | |
} | |
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