Guess my Dogs Names!

The hardest part of this exercise was to figure out how to stop the loop when it found the correct name. It kept bringing back that the name was correct but then added that the name was wrong-O unless it was the last name in the array. This was because it would continue through the loop after finding the correct name and since there are eight names in the array it was also wrong when compared to all of the names!

As usual the remedy was simple, the figuring it out part was hard!

I also used the method toLowerCase() to convert the string entered by the user to lowercase as that is what my array is in.