Lowercase, Uppercase or Mixed?

Published by Nomore in

Create a function which returns "upper" if all the letters in a word are uppercase, "lower" if lowercase and "mixed" for any mix of the two.

Examples

GetCase("whisper...") ➞ "lower"

GetCase("SHOUT!") ➞ "upper"

GetCase("Indoor Voice") ➞ "mixed"

Notes

Ignore punctuation, spaces and numbers.

Watch a quick demo on how Edabit works.