Skip to content
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

Fix solution with let usage #219

Merged
merged 1 commit into from
Feb 13, 2016
Merged

Fix solution with let usage #219

merged 1 commit into from
Feb 13, 2016

Conversation

ezubarev
Copy link
Contributor

@ezubarev ezubarev commented Feb 4, 2016

In proposed approach variable "temp" is declared with "var" in global scope, thefore temp is shared between all iteration of console.log. It"s not necessary to use "temp", since let in for loop declares independent variable "i" on each step.

In proposed approach variable "temp" is declared in global scope, thefore temp is shared between all iteration of console.log. 
You do not need use temp, since let in for loop declares independent variable "i" on each step.
@ezubarev ezubarev changed the title Fix soultion with let usage Fix solution with let usage Feb 4, 2016
@loverajoel
Copy link
Owner

@madmantalking ping!

loverajoel added a commit that referenced this pull request Feb 13, 2016
Fix solution with let usage
@loverajoel loverajoel merged commit ea4623c into loverajoel:gh-pages Feb 13, 2016
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.

2 participants