I am currently creating a password option for my website.
So far I have about 5 people (hey its a start!! They're mates!!)
I have those five passwords in an array called userPasswords.
I have a 'userenterPassword = window.prompt('Please enter password.','');' set up to keep the password in memory.
I have a var UserIndex = 1;
Then I try to set up a for loop:
for(count = 0; count < userPasswords[UserIndex]; count = count + 1)
if(userenterPassword != userPasswords)
'userenterPassword = window.prompt('Please enter password.','');
It wont seem to go further this?
Should I be using a WHILE loop for user password wrong entry?