Last active
November 6, 2019 12:20
-
-
Save NyaGarcia/3af041f60d8c0846c926e57554e224b3 to your computer and use it in GitHub Desktop.
Conditionals with boolean shorthands
This file contains 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) { | |
usePokeball(); | |
} | |
if (isPokemon && !isSaved) { | |
save(pokemon); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment