Skip to content

Commit 762e97f

Browse files
committed
Update else condition to assign response message for incorrect password in passwordChecker.js
1 parent 220a714 commit 762e97f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎prep/passwordChecker.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ else if(userInput === adminPassword){
1010
console.log("Admin access granted");
1111
}
1212
else{
13-
console.log("Incorrect password!");
14-
}
13+
response="Incorrect password!";
14+
}

0 commit comments

Comments
 (0)