Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 25, 2019 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/a8fc599ecd5e19bad5e38122789dccef to your computer and use it in GitHub Desktop.
Save codecademydev/a8fc599ecd5e19bad5e38122789dccef to your computer and use it in GitHub Desktop.
Codecademy export
// 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