That'll only work once - you need the while loop

I don't know javascript (I'm a C++er), so can't help with the syntax. But, basically Derek, your first effort doesn't look too far off - it's just that your while condition is wrong - it'll only enter the loop when the entered number is equal tou your upper limit. Also you're not re-parsing the number you enter in the loop. And what happens if the entered number is less than 1?

Posted By: BerlinCanary on May 27th 2007 at 15:48:56


Message Thread


Reply to Message

In order to add a post to the WotB Message Board you must be a registered WotB user.

If you are not yet registered then please visit the registration page. You should ensure that their browser is setup to accept cookies.

Log in