Reverse String
Reverses the characters of a given string.
reverseString
The reverseString function reverses the characters of a given string, returning a new string with the characters in reverse order.
Function Signature
function reverseString(input: string): stringParameters
input(string): The string to reverse.
Return Value
string: The reversed string.
Example Usage
playground.ts
Notes
- The input string is trimmed of leading and trailing whitespace before reversing.
Last updated: Sun, Jun 14, 2026 07:06:16AM (UTC)
