Skip to content

Commit

Permalink
js-logic devleagueprep#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorelei808 committed Jun 10, 2018
1 parent 5c93348 commit 88bcb91
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*
* The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result.
*/
console.log('test');
console.log('another test');
function canVote(age){
if(age >=18){
return true;
}else{
return false;
}
}
console.log("1. canVote: ", canVote(19));

/*
* #2
Expand Down Expand Up @@ -316,15 +322,3 @@ Final Boss

var phrase = "An apple a day keeps Alice feeling awesome!";













0 comments on commit 88bcb91

Please sign in to comment.