Skip to content

Commit 114f2a0

Browse files
Kevin GuoKevin Guo
authored andcommitted
1 parent 0110d4a commit 114f2a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

exercises.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
2929
* 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.
3030
*/
3131

32-
console.log("another test");
33-
3432
function canVote(age){
3533
if (age >= 18){
36-
return age;
34+
return true;
3735
}
3836
}
37+
console.log(canVote(18));
3938

4039
/*
4140
* #2

0 commit comments

Comments
 (0)