Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/change var #38

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
wants to merge 3 commits into from
Closed

Feature/change var #38

wants to merge 3 commits into from

Conversation

iNeoO
Copy link

@iNeoO iNeoO commented Jan 6, 2017

We should update most of var in let.

I changed few var to const because i though it was more appropriate

@@ -102,8 +102,8 @@ for (var i = 0; i < 525600; i++) {
**Good**:
```javascript
// Declare them as capitalized `var` globals.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe '// Declare them as capitalized const globals.' as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep you are right

var MINUTES_IN_A_YEAR = 525600;
for (var i = 0; i < MINUTES_IN_A_YEAR; i++) {
// Declare them as capitalized `const` globals.
const MINUTES_IN_A_YEAR = 525600;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

came into the issues wondering about the same thing ;)

@iNeoO iNeoO closed this Jan 8, 2017
@ryanmcdermott
Copy link
Owner

Thanks so much at looking into this Valère! I appreciate your good insights. Keep up the PRs!

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

Successfully merging this pull request may close these issues.

4 participants