i=1e300;for(;;i-->0){while(i&&alert('foo'));}
- define
iin the loop - use the
varkeyword to define variables (or let, when usingforloop iterator variables) i-->0iis not how you make an ascii bow in javascript,Dworks better:D-->D -->0(but seriously, write it properly. same effect)while(i&&alert('foo')wouldn't this be slimmer if you put thealertin the loop?while(i)alert('foo')