Reverse String
Reverses a string.
Category | Strings |
Author | Pol Gubau |
Since | 1.0.0 |
Last Updated | 2025-03-15 |
Type | Sync |
Compatibility | Universal |
Example
Input
reverseString('hello world')
Output:
dlrow olleh
Return
Returns the reversed string.
Type: string
Props
Name | Type | Default | Required | Description |
---|---|---|---|---|
str | string | null | Yes | The string to reverse. |
Notes
This function reverses the order of the characters in the string.
Tags
- string
- reverse