Skip to content

Commit

Permalink
Finished exercise devleagueprep#2
Browse files Browse the repository at this point in the history
  • Loading branch information
loganwong808 committed Jun 9, 2018
1 parent 4acde99 commit bedc5a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function canVote(age) {
if(age >= 18){
return 'yes you can vote mah man';
}else{
return 'sorry bruh you still too young'
return 'sorry bruh you still too young';
}
}

Expand All @@ -52,6 +52,14 @@ console.log(canVote(19));
* Console.log your result.
*/

function login(password) {
if(password === 'test1234'){
return "Great job! your password was correct!";
}else{
return "please re-enter your password, it came back incorrect :(";
}
}
console.log(login("test1234"));

/*
* #3
Expand Down

0 comments on commit bedc5a4

Please sign in to comment.