Reverse Letter Cases

STRING

Problem

Given a string text, return a new string where each letter's case is reversed. Lowercase letters should be converted to uppercase, and uppercase letters to lowercase.

Examples

reverseStringCases("Hello Peak") // returns "hELLO pEAK" // All the lowercase letters in the original string // are converted to uppercase and vice versa
Loading...