Skip to content

var is worse than that #1675

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

Closed
erights opened this issue Dec 25, 2017 · 1 comment
Closed

var is worse than that #1675

erights opened this issue Dec 25, 2017 · 1 comment

Comments

@erights
Copy link

erights commented Dec 25, 2017

https://github.com/airbnb/javascript#hoisting--about starts with

var declarations get hoisted to the top of their scope

and the following text suggests that this is the same notion of scope as the scope that let and const hoist to. Rephrase to something like "top of the block of their enclosing function"

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

2 participants