BeginnerJavaScript

Reverse a string

Write a function that reverses a string.

Examples

Input: "hello"

Output: "olleh"

Your Solution

Output

Click 'Run Code' to see the output