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
Auto QOS on Cisco 6500 series Switches
PowerShell and PSEXEC Problem
S.M.A.R.T not enabled
Connecting multiple monitors with IMAC
get a remote windows server OS version and IP address without access permission on that server
Open Office Text and python: extract text word by word
How can I view a Private IP Address Nat to a Public IP Address
Nonqualified transactions are being rolled back.
Oracle CPU usage
application roles vs DB roles