Skip to content

Conversation

shosti
Copy link

@shosti shosti commented Jul 29, 2013

If there isn't an explicit var declaration for loop variables, a global variable is created. It doesn't make a difference for these examples, but since the koans are for learning it's probably a good idea to get people in the habit of explicitly declaring variables.

liammclennan added a commit that referenced this pull request Jul 30, 2013
Explicitly declare for..in vars
@liammclennan liammclennan merged commit 4ffb615 into liammclennan:master Jul 30, 2013
@liammclennan
Copy link
Owner

Thanks.

@shosti shosti deleted the for-in branch July 30, 2013 04:49
ldougher06 added a commit to ldougher06/JavaScript-Koans that referenced this pull request Apr 23, 2015
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