| written 3.6 years ago by | • modified 3.6 years ago |
Write a JavaScript program that prompts for the username and password individually.
Provides five chances to guess the correct username and password for each one.
The correct username is "admin" and the password is "admin12345".
If the username and password are correct it will display on the screen how many tries the user made to guess the correct password otherwise it will display how many tries the user has left to guess the correct password.
If the correct username is entered in 5 attempts then only the program will ask for the password otherwise not.
In 5 attempts correct username is not guessed then the program will terminate there only.

and 2 others joined a min ago.
and 4 others joined a min ago.