SpikeSpiegel
Can anyone help me out. I'm having trouble programming a bit of Javascript. In particular a while loop. I have:
while (number < 1 || number > length)
{
number= window.prompt('error - please re-enter number','')
};
and it doesn't work. I want it so that it'll perform the condition in the loop while the number is less than 1, or greater than another user defined field. What am I doing wrong?
while (number < 1 || number > length)
{
number= window.prompt('error - please re-enter number','')
};
and it doesn't work. I want it so that it'll perform the condition in the loop while the number is less than 1, or greater than another user defined field. What am I doing wrong?