-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Variable declaration #143
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
Variable declaration #143
Conversation
I'm not sure either. Just the fact that, as the article said, Oh, and be careful, your 661cfe1 commit changes the name of the guide. |
I dont get it. If you use the var all the time - you cant end with global. If you use commas you can make variable global. And develop a habbit to use var is easier, than to develop a habbit to check if it is a declaration and you are not going to break it. Couple of situations:
I also heard this statement as the way to advocate commas:
Not sure if it is the right place to put it. |
Apologizes all, you can close this Pull Request. This was inadvertently against your master and not our fork. |
@bdoms @doomspork @jcarouth @amdtech
Per @bdoms suggestion to be explicit about variable declaration. This article was referenced and has some valid poiints: http://benalman.com/news/2012/05/multiple-var-statements-javascript/
Im neutral, and mainly just want to decide on one standard.