Reverse a String

Easy · javascript · javascript · strings

Write solution(str) that returns the string reversed.

Sample tests

solution("hello") // => "olleh"

Submit

Leaderboard