This is a potential answer to the exercise: Find an object in an array.
- Try validating the user input before testing:
inputValuevalue missing: "Please enter a Character Class";
- The
returnstatement in theif/elseblocks is redundant. Refactor this code to use the least code possible.