is it possible to check if a char matches a list of possibilities?

You can do something similar when looking for a char in a String, by using the indexOf method to search the string.

if ("aeiouAEIOU".indexOf(aChar) != -1)

Leave a Comment