Created
April 1, 2020 03:14
-
-
Save manakuro/a30a617472a72b25eb56d669c081e058 to your computer and use it in GitHub Desktop.
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
export const getAnimal = (code) => { | |
if (code === 1) return 'CATS' | |
if (code === 2) return 'DOGS' | |
if (code === 3) return 'RABBITS' | |
return null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment