Skip to content

Commit 9985495

Browse files
Jess ManapulJess Manapul
authored andcommitted
completed devleagueprep#2
1 parent 36b45c7 commit 9985495

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

exercises.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,16 @@ console.log(canVote(18));
5050
* Console.log your result.
5151
*/
5252

53+
function login (password) {
54+
if (password === "test1234") {
55+
return "Login Success!";
56+
} else {
57+
return "Login failed.";
58+
}
59+
}
5360

61+
console.log(login('test1234'));
62+
console.log(login('1234test'));
5463

5564
/*
5665
* #3

0 commit comments

Comments
 (0)