← Back to challenges

The Reverser!

JavaScriptHardstringsformattinglanguage_fundamentals

Instructions

The "Reverser" takes a string as input and returns that string in reverse order, with the opposite case.

Examples

reverse("Hello World") ➞ "DLROw OLLEh"

reverse("ReVeRsE") ➞ "eSrEvEr"

reverse("Radar") ➞ "RADAr"

Notes

There will be no punctuation in any of the test cases.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Can You Spare a Square?