-
-
Save codecademydev/a8fc599ecd5e19bad5e38122789dccef to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write your function here: | |
const canIVote = age => { | |
if (age >= '18') | |
return True; | |
}else{ | |
return False; | |
} | |
}; | |
// Uncomment the line below when you're ready to try out your function | |
// console.log(canIVote(19)) // Should print true | |
// We encourage you to add more function calls of your own to test your code! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment