Skip to content

Docs of functions: is this really a closure? #588

Answered by ghost
waleed-alfaifi asked this question in Content
Discussion options

You must be logged in to vote

You should be correct - neither of these functions enclose anything from an outer scope.
It is correct in that you could call the outer function from it, but as it does not reference the function within the body, it does not close over it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by waleed-alfaifi
Comment options

You must be logged in to vote
1 reply
@Shubham962546
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants