Reverse the Case

Published by supafly in

Given a string, create a function to reverse the case. All lower-cased letters should be upper-cased, and vice versa.

Examples

ReverseCase("Happy Birthday") ➞ "hAPPY bIRTHDAY"

ReverseCase("MANY THANKS") ➞ "many thanks"

ReverseCase("sPoNtAnEoUs") ➞ "SpOnTaNeOuS"

Notes

N/A

Watch a quick demo on how Edabit works.