Skip to content

Commit

Permalink
completed devleagueprep#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Manapul authored and Jess Manapul committed Feb 9, 2019
1 parent 36b45c7 commit 9985495
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ console.log(canVote(18));
* Console.log your result.
*/

function login (password) {
if (password === "test1234") {
return "Login Success!";
} else {
return "Login failed.";
}
}

console.log(login('test1234'));
console.log(login('1234test'));

/*
* #3
Expand Down

0 comments on commit 9985495

Please sign in to comment.