popovIliya

March-2022-Conditional Statements - Password Guess

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