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 7884c33 commit 1ed84b9Copy full SHA for 1ed84b9
exercises.js
@@ -29,6 +29,15 @@ 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
+function canVote(age){
33
+ if(age >= 18){
34
+ return "true";
35
+ }else{
36
+ return "false"
37
+ }
38
39
+
40
+console.log("1. canVote " + canVote(18));
41
42
/*
43
* #2
@@ -43,6 +52,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
52
44
53
45
54
55
46
56
47
57
* #3
48
58
* Function - isGreaterThan
0 commit comments