Exerpad
Exercise 8 · Chapter: For LoopsOptional+50 XP

Reverse Word

Read a word and print it reversed.

Example:

Input:

hello

Output:

olleh

Hint: Build a new string by adding letters to the front.

Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.