Chinese Zodiac

Published by chrislabours in

Create a function that takes a year as an argument and returns the corresponding Chinese zodiac.

Examples

chineseZodiac(2021) ➞ "Ox"

chineseZodiac(2020) ➞ "Rat"

chineseZodiac(1933) ➞ "Rooster"

Notes

The list of animals used can vary slightly, so check the Resources tab for the list that you will need for this challenge.

Watch a quick demo on how Edabit works.