Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. const userLogin = {userName:"dfountain0", password: "don123"};
  2. let correct = false;
  3.  
  4. do {
  5. let userInput = prompt("Enter password for user for " + userLogin.userName);
  6.  
  7. if (userLogin.password === userInput) {
  8. alert("Granted.");
  9. correct = true;
  10. }
  11. } while (!correct);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement