Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created June 17, 2012 12:47
Show Gist options
  • Select an option

  • Save ruprict/2944474 to your computer and use it in GitHub Desktop.

Select an option

Save ruprict/2944474 to your computer and use it in GitHub Desktop.
var count, instrument, instruments, _i, _len;
instruments = ["piano", "violin", "guitar", "flute", "drums"];
for (count = _i = 0, _len = instruments.length; _i < _len; count = ++_i) {
instrument = instruments[count];
instrument_list(count + 1, instrument);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment