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 c1466eb commit 4acde99Copy full SHA for 4acde99
exercises.js
@@ -29,8 +29,16 @@ 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('test');
33
-console.log('anotherTest');
+function canVote(age) {
+ if(age >= 18){
34
+ return 'yes you can vote mah man';
35
+ }else{
36
+ return 'sorry bruh you still too young'
37
+ }
38
+}
39
+
40
+console.log(canVote(19));
41
42
43
/*
44
* #2
0 commit comments