Skip to content

Commit

Permalink
devleagueprep#1 Rev js-logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorelei808 committed Jun 10, 2018
1 parent 88bcb91 commit fae12ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ 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("1-------------------");
function canVote(age){
if(age >=18){
return true;
}else{
return false;
}
}
console.log("1. canVote: ", canVote(19));
console.log("1. Woo hoo! Can vote: ", canVote(19));

/*
* #2
Expand Down

0 comments on commit fae12ab

Please sign in to comment.