anche in JS (come nel JAVA) si può fare

for(var i=0; i<10; ++i) // o i++