Hey Coding Sam - nice article - just wanted to point out a typo that might confuse some readers:
"The “children” scopes can access the functions and variables in the “parent” scopes, but the “children” cannot access the “parents”.
I think you meant to say at the end, "but the parents cannot access the children."
Yes you are completely right. Sorry. Just fixed it :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Coding Sam - nice article - just wanted to point out a typo that might confuse some readers:
I think you meant to say at the end, "but the parents cannot access the children."
Yes you are completely right. Sorry. Just fixed it :)