Microsoft
Software
Hardware
Network
Question : JavaScript: i++ in a loop
Because i++ adds 1, I have to start with -1 for my loop to work:
1: 2: 3: 4:
var i=-1; while(i++<myArray.length-1){ alert(i); }
That code works but it seems awkward. Is there a way better to do this, so that I can start with:
var i = 0;
Related Solutions:
JavaScript: Alert when checkbox value changed
Answer : JavaScript: i++ in a loop
for ( var i = 0; i < myArray.length; i++ ) {
alert( i );
}
Is the common idiom
Random Solutions
windows 2008 r2
user logged in
Hosted 2008 R2 Branche Cache client OS requirements?
Is realplayer still as invasive and stuffed with spyware etc. as it used to be?
Help formulating pointcut for methods implementing annotated interface methods
What is the SQL split command?
cannot access own website from SBS 2008 domain
SQL convert time and date to just date
MS Access
Deleting from multiple tables