Skip to content

Commit 31d8426

Browse files
committed
Add else if condition to password validation logic in passwordChecker.js
1 parent ad792cd commit 31d8426

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎prep/passwordChecker.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const adminPassword="override";
55
if(userInput === password){
66
console.log("Correct password entered");
77
}
8-
8+
else if(userInput === adminPassword){
9+
console.log("Admin access granted");
10+
}
911
else{
1012
console.log("Incorrect password!");
1113
}

0 commit comments

Comments
 (0)