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
Java String Limitations
Excel Drop Down Lists
Make field visible based on conditions of various dropdown boxes
Sample app for touch recognition
Can i use public certificates at *ALL* places in OCS 2007 R2.
Tape Drive Type Recomendation
how to check if user is local admin
Windows 2003 file store off site
Vbs script to get group membership count. Does not get actual count for some groups.
How to write to a file in Java?