So I took a look at the code that controls the counter on the SO advertising page. Then I saw the line where this occured i-->
. What does this do?
He
Other answers have explained that it's two operators. I'll just add that in the example, it's unnecessary. If you're counting down from a positive integer to zero, you can miss out the greater-than-zero test and your code will be shorter and, I think, clearer:
var i = 10;
while (i--) {
// Do stuff;
}