Skip to content

Instantly share code, notes, and snippets.

@samuelcotterall
Created September 9, 2011 14:27
Show Gist options
  • Save samuelcotterall/1206360 to your computer and use it in GitHub Desktop.
Save samuelcotterall/1206360 to your computer and use it in GitHub Desktop.
Loop: Increment & Decrement
for (vari=0, j=len=items.length; i<len || j===0; i++, j--) {
console.log(i,j);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment