Function reverse

Reverse a string.

reverse("TypeScript");
// => "tpircSepyT"
  • Parameters

    • string: string

      The string to reverse.

    Returns string

    The reversed string.