Skip to content

Commit fdd8698

Browse files
committed
devleagueprep#2 complete
1 parent fad0ebb commit fdd8698

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exercises.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ 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 'Incorrect Password';
58+
}
59+
}
60+
console.log(login('test1234'))
5361

5462
/*
5563
* #3

0 commit comments

Comments
 (0)