Hi
Was wondering if anyone can tell me why the code below does not work!
I am presuming it is something to do with the array but can't figure it out.
Thanks
var userpasswords = ['sooty', 'plane', 'sandra', 'football', 'laundry'];
var password;
password = window.prompt('Please enter your password','')
while (password != userpasswords)
{
window.prompt('You have not entered a incorrect password. Please try again','');
};
document.write('You are logged in')