---
title: Hiding For Dear Life
tags: challenge-zone
---
<style>
.center{
text-align: center;
}
.blue {
color: #51c1e9;
}
.blue-underline {
color: #51c1e9;
text-decoration: underline;
}
.sub-t {
color: #FF0000;
font-size: 22px;
}
.header {
font-size: 28px;
}
.sub-header {
font-size: 29px;
}
.important {
color: #E80D20;
}
.big {
font-size: 38px;
font-weight: bolder;
}
.green {
color: #39a928;
font-weight: bold;
}
.red {
color: #db2b3d;
font-weight: bold;
}
.small {
font-size: 12px;
}
.head {
font-weight: bold;
font-size: 25px;
}
</style>
<p class="blue big center">Hiding For Dear Life</p>
<hr>
:::warning
If you're viewing this on the Challenge Zone website, you can click [here](https://hackmd.io/@ASC/ASCCZhidingWord) to open the challenge in a new tab.
:::
### <p class="head">Scenario</p>
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.
### <p class="head">Task</p>
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.
---
### function `hidingWord`
The `hidingWord` function should accept a`String` argument and return a `String` output in **capital letters**.
---
### <p class="head">Sample Results</p>
```javascript=
hidingWord("ALaYLEllAFINsPONtNQEaHGrPBcWToGHJdAOIeR") // --> ALLSTARCODE
hidingWord("ECAMNmSSFJoOOEFLPGoQWZXCLnADHIGY") // --> MOON
hidingWord("YFeHUmFBbeFBzYzFBYLleGBYEmFGBeMENnTt") // --> EMBEZZLEMENT
hidingWord("TNhKANBiVUQdPSHiGBVAKnOAOIQgFD") // --> HIDING
hidingWord("QCAqNLIuSJPeFAMTGHOSeTREQWCVXnADYUIP") // QUEEN
hidingWord("YUIMJHFchALJAZXCVYAQPHeASVNZAsALJFUsNAQF") // CHESS
hidingWord("PAJBNaAJFERYTAZAJPOrUAFGJALJRtALJFAVQAS") // ART
hidingWord("ACJZLwPAOFJORTEQoAJZQERYCBVMrAJAQGHFYmAQJGL") // WORM
hidingWord("") // --> ""
```
---
Your function should work for any `String` argument. DO NOT HARDCODE!