Skip to content

Commit

Permalink
code for devleagueprep#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailiwai committed Jun 10, 2018
1 parent ae160af commit caa4c3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ 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"
}
}

console.log(canVote(21));

/*
* #2
Expand Down

0 comments on commit caa4c3a

Please sign in to comment.