Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const userLogin = {userName:"dfountain0", password: "don123"};
- let correct = false;
- do {
- let userInput = prompt("Enter password for user for " + userLogin.userName);
- if (userLogin.password === userInput) {
- alert("Granted.");
- correct = true;
- }
- } while (!correct);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement