Skip to content

Commit

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

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

console.log("1. canVote " + canVote(18));

/*
* #2
Expand All @@ -43,6 +52,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #3
* Function - isGreaterThan
Expand Down

0 comments on commit 1ed84b9

Please sign in to comment.