Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Last active November 6, 2019 12:21
Show Gist options
  • Save NyaGarcia/e87a5cd5e2a5787880b7ca95bcd5659d to your computer and use it in GitHub Desktop.
Save NyaGarcia/e87a5cd5e2a5787880b7ca95bcd5659d to your computer and use it in GitHub Desktop.
Conditionals with boolean variables without using shorthands
if (isWildPokemon === true) {
usePokeball();
}
if (isPokemon === true && isSaved === false) {
save(pokemon);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment