Reverse String

Reverses a string.

CategoryStrings
AuthorPol Gubau
Since1.0.0
Last Updated2025-03-15
TypeSync
CompatibilityUniversal

Example

  • Input

    reverseString('hello world')

    Output:

    dlrow olleh

Return

Returns the reversed string.

Type: string

Props

NameTypeDefaultRequiredDescription
strstringnullYesThe string to reverse.

Notes

This function reverses the order of the characters in the string.

Tags

  • string
  • reverse

Related