Advertisement
Didart

Password Guess

Mar 5th, 2022
2,482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function passwordGuess(input) {
  2.  
  3.     let password = input[0];
  4.  
  5.     if (password === "s3cr3t!P@ssw0rd") {
  6.         console.log("Welcome");
  7.     } else {
  8.         console.log("Wrong password!");
  9.     }
  10. }
  11. passwordGuess(["qwerty"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement