Skip to content

Instantly share code, notes, and snippets.

@seanwiseman
Created January 30, 2023 08:53
Show Gist options
  • Select an option

  • Save seanwiseman/75d81b1618965d328fd05a142c1214e7 to your computer and use it in GitHub Desktop.

Select an option

Save seanwiseman/75d81b1618965d328fd05a142c1214e7 to your computer and use it in GitHub Desktop.
/*
Age check:
We need a function called `isOldEnough` that will accept a user's age (integer) and return a boolean value stating
if the user is old enough for our check.
For now the minimum age limit should be 18.
Here are some examples that sound work:
> isOldEnough(25)
true
> isOldEnough(14)
false
> isOldEnough(18)
true
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment