Skip to content

Commit 7964b9c

Browse files
Kevin GuoKevin Guo
authored andcommitted
test
1 parent 7e3b11a commit 7964b9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercises.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ 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+
function canVote(age){
33+
if (age >= 18){
34+
return age;
35+
}
36+
}
3237

3338
/*
3439
* #2

0 commit comments

Comments
 (0)