DEV Community

Discussion on: Why don’t we use var anymore?

Collapse
 
sql_knievel profile image
Rich Boniface

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."

Collapse
 
codingsam profile image
Coding Sam

Yes you are completely right. Sorry. Just fixed it :)