Javascript And The While Loop...
Hello,
I have a question for all the Java Gurus on this site.
Something is happening with my While loop. He will only runs once but i want him to run 12 x times. Here is my code.
objDay is my array. and each of the 12 arrays need to run 31 times.
Code:
var MonthCount=0;
var DayCount =0;
do {
while (DayCount <= objDay[MonthCount]) {
alert ( DayCount );
DayCount++;
}
MonthCount++;
} while (MonthCount <= objDay.length);
Can someone tell me what i am doing wrong?? please help..
:(