Created
December 18, 2010 20:18
-
-
Save michaelficarra/746847 to your computer and use it in GitHub Desktop.
950
This file contains 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
for x, index in [1, 2, 3] | |
console.log index | |
index++ |
This file contains 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 index, x, _len, _ref; | |
_ref = [1, 2, 3]; | |
for (index = 0, _len = _ref.length; index < _len; index++) { | |
x = _ref[index]; | |
console.log(index); | |
index++; | |
} |
This file contains 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 index, x, _len, _ref, _ref2; | |
_ref = [1, 2, 3]; | |
for (_ref2 = 0, _len = _ref.length; _ref2 < _len; _ref2++) { | |
x = _ref[_ref2]; | |
index = _ref2; | |
console.log(index); | |
index++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment