Last active
November 6, 2019 12:21
-
-
Save NyaGarcia/e87a5cd5e2a5787880b7ca95bcd5659d to your computer and use it in GitHub Desktop.
Conditionals with boolean variables without using shorthands
This file contains hidden or 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
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