Build an RPG Creature Search App Project - Build an RPG Creature Search App

image

You still have hard-coded variables that are checking for specific expected values. That is not solving this problem in the general case. Imagine if the data in this API changed and/or you were given different input values. Would your code be able to return the correct information about a creature?

To find out more about what hard-coding is or about why it is not suitable for solving coding challenges, please read this post: Hard-coding For Beginners