Hii Lucy!!
plz check your for loop for (var i=2;i<=8;i=i++)
Error--Infinite loop because you are using i=i++ ,that assign the value of i to 2 every time.
while it should be
CaseI Correct one----> for (var i=2;i<=8;i++)
or
CaseII Correct one---->
j=1
for (var i=2;i<=8;i=j++)
{
//statements
}
As i think you are using caseI, so use (i++) rather than (i=i++)
Hope this will help you ;)
Cheers :)
vinod
|