Skip to content

Instantly share code, notes, and snippets.

@majek
Created Aug 9, 2011
Embed
What would you like to do?
var i, x;
i = 10;
for (x = 0; 0 <= i ? x < i : x > i; 0 <= i ? x++ : x--) {
alert(x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment