Skip to content

Commit b49b6c9

Browse files
committed
Password checker task
1 parent 6aa92d2 commit b49b6c9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎prep/passwordChecker.js‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const password = "secretword123";
2+
const userInput = "secretword123";
3+
const adminPassword = "override";
4+
5+
if (userInput === password){
6+
console.log("Correct password entered");
7+
} else if (userInput === adminPassword){
8+
console.log("Admin access granted")
9+
} else{
10+
console.log("Incorrect password!");
11+
}

0 commit comments

Comments
 (0)