This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
STEP 1 | |
- Check each letter in the sentence | |
- Check if it's uppercase | |
- If it's upper case, convert it to lower case and vice versa | |
*/ | |
const isLowerCase = ( letter ) => { | |
const regex = /[a-z]/g; | |
const reg = new RegExp(regex); |