Skip to content

Commit b602bc2

Browse files
committed
completed devleagueprep#2
1 parent 701b4d8 commit b602bc2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

exercises.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ console.log(canVote(43))
5454
* Console.log your result.
5555
*/
5656

57-
57+
function login(password){
58+
if (password === "abcd"){
59+
return "Login Success!"
60+
}else{
61+
return "Login failed. Try Again"
62+
}
63+
}
64+
console.log(login("dasf"))
5865
/*
5966
* #3
6067
* Function - isGreaterThan

0 commit comments

Comments
 (0)