Reverse
Reverses the sequence of characters in given string.
Parameters: string
Section titled “Parameters: string”- A string.
Returns: string
Section titled “Returns: string”- The string in reverse order.
function reverse(str: string): string
reverse('bad') // 'dab'