Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Last active November 6, 2019 12:20
Show Gist options
  • Select an option

  • Save NyaGarcia/3af041f60d8c0846c926e57554e224b3 to your computer and use it in GitHub Desktop.

Select an option

Save NyaGarcia/3af041f60d8c0846c926e57554e224b3 to your computer and use it in GitHub Desktop.
Conditionals with boolean shorthands
if (isWildPokemon) {
usePokeball();
}
if (isPokemon && !isSaved) {
save(pokemon);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment