- Notifications
You must be signed in to change notification settings - Fork1.2k
Update Readme.md#56
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Added new javascript question .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you add a bit of explanation?
Explanation:- In the outer function, both this and self refer to myObject and therefore both can properly reference and access foo. In the inner function, though, this no longer refers to myObject. As a result, this.foo is undefined in the inner function, whereas the reference to the local variable self remains in scope and is accessible there. |
Thanks for the idea. I think the book deserves the whole chapter about managing |
Sure thing. Can I also add some more good questions to this Repo ? Lastly, Can you please merge this PR ? Thanks. |
No, this one is not yet good enough to be merged, I will need to change it a bit. |
Added new javascript question .