Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is 'Higher Order Functions' as the same as 'javascript closure'? #52

Open
ldong opened this issue May 6, 2014 · 2 comments
Open

is 'Higher Order Functions' as the same as 'javascript closure'? #52

ldong opened this issue May 6, 2014 · 2 comments

Comments

@ldong
Copy link

ldong commented May 6, 2014

In 6.2 Higher Order Functions, could you tell the difference compare to javascript closure?

For me this so called 'Higher order functions' is exactly how I understand 'closure'. If I'm right, please add 'this is what other people called closure' at the end of this section. It surely will clarify the misunderstanding.

@SamyPesse @AaronO Thank you

@mrsaeeddev
Copy link

In JS, Higher Order Functions are also known as Callbacks. Concept of closures is different.

@SivaNagaKalyan
Copy link

Higher Order Functions are functions that either takes function as an argument or returns function and closure is a different concept. so what is closure ? -- closure is a power of inner function where it is able to access variables from outer function even after the outer function is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants