Skip to content

Commit

Permalink
devleagueprep#1 complete
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarmack82 committed Apr 9, 2019
1 parent 7884c33 commit fad0ebb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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.
*/

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

/*
* #2
Expand Down

0 comments on commit fad0ebb

Please sign in to comment.