Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
micaiahcape committed May 12, 2019
1 parent 7884c33 commit 72dcb13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if(today === "Friday"){
If/else statements = Evaluates (or checks) a condition. If the condition is true, the first code block is executed. If the condition is false, the second code block is executed instead.
*/

console.log('test');

/*if(today === "Friday"){
return "Let's Party!";
}else{
Expand All @@ -29,6 +31,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.
*/

function canVote (age){
if (age >= 18){
return 'Go ahead and vote!'
}
}

console.log(canVote(19));

/*
* #2
Expand Down

0 comments on commit 72dcb13

Please sign in to comment.