We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0110d4a commit 114f2a0Copy full SHA for 114f2a0
exercises.js
@@ -29,13 +29,12 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
29
* 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.
30
*/
31
32
-console.log("another test");
33
-
34
function canVote(age){
35
if (age >= 18){
36
- return age;
+ return true;
37
}
38
+console.log(canVote(18));
39
40
/*
41
* #2
0 commit comments