Created
April 8, 2011 04:13
-
-
Save richtaur/909268 to your computer and use it in GitHub Desktop.
Iterates through an array with a reference to each property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var things = [ | |
| 'a', | |
| 'b', | |
| 'c' | |
| ]; | |
| for (var i = 0, thing; thing = things[i]; ++i) { | |
| console.log(i, thing); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment