Skip to content

Commit ad792cd

Browse files
committed
Add adminPassword variable in passwordChecker.js
1 parent cae8927 commit ad792cd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎prep/passwordChecker.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
const password="secretword123";
22
const userInput="thisiswrong";
3+
const adminPassword="override";
34

45
if(userInput === password){
56
console.log("Correct password entered");
6-
} else{
7+
}
8+
9+
else{
710
console.log("Incorrect password!");
811
}

0 commit comments

Comments
 (0)