Hiding For Dear Life
If you're viewing this on the Challenge Zone website, you can click here to open the challenge in a new tab.
Scenario
A group of letters have escaped and are trying to disguise themselves amongst a larger group of random letters from the alphabet. The letters that have escaped are all lowercase letters hiding in a string amongst a group of capital letters.
Task
Your task is to write a function hidingWord
which takes one String
argument and returns a string of the hiding letters in uppercase letters.
Note: Your function only needs to work with the following input: lowercase letters, uppercase letters, and empty spaces.
hidingWord
The hidingWord
function should accept aString
argument and return a String
output in capital letters.
Sample Results
Your function should work for any String
argument. DO NOT HARDCODE!