Skip to content

Commit 56326fb

Browse files
committed
Add else statement to password validation logic
1 parent 1b3d99b commit 56326fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎prep/passwordChecker.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ const userInput="secretword123";
33

44
if(userInput === password){
55
console.log("Correct password entered");
6+
} else{
7+
console.log("Incorrect password!");
68
}

0 commit comments

Comments
 (0)