View Single Post
  #2 (permalink)  
Old June 15th, 2006, 08:21 AM
vinod_yadav1919 vinod_yadav1919 is offline
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

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++)

CaseII Correct one---->
         for (var i=2;i<=8;i=j++)

As i think you are using caseI, so use (i++) rather than (i=i++)

Hope this will help you ;)

Cheers :)

Reply With Quote