Skip to content

Commit

Permalink
devleagueprep#2 js-logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorelei808 committed Jun 10, 2018
1 parent fae12ab commit 2a56b7c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ console.log("1. Woo hoo! Can vote: ", canVote(19));
* The function will return the message: "Login Success!", if the string passed into the function is "test1234"
* Console.log your result.
*/


console.log("2---------------------");
function login(password){
if(password === "test1234"){
return "Login Success!"
}else{
return "Login FAILED!";
}
}
console.log(login("test1235"));
/*
* #3
* Function - isGreaterThan
Expand Down

0 comments on commit 2a56b7c

Please sign in to comment.