Skip to content

Commit ccbfd94

Browse files
JonJon
authored andcommitted
1 parent 1ed84b9 commit ccbfd94

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

exercises.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ console.log("1. canVote " + canVote(18));
5151
* Console.log your result.
5252
*/
5353

54+
function login(password){
55+
if(password === 'test1234'){
56+
return 'Login Success!';
57+
}else{
58+
return 'Login Failed!'
59+
}
60+
}
61+
62+
console.log("2. password " + login('test1234'));
63+
5464

5565

5666
/*

0 commit comments

Comments
 (0)