Skip to content

Commit

Permalink
completed devleagueprep#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Sirois authored and Alexandra Sirois committed Jun 10, 2017
1 parent 5ce09f4 commit 2ccffef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ 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.
*/

function canVote(age){
if(age >= 18){
return true;
}
}
console.log(canVote(20));

/*
* #2
Expand Down

0 comments on commit 2ccffef

Please sign in to comment.