โ† All coding problems

Reverse a string

EasyStrings

Return the string s reversed.

Function
function solve(s)
Example 1
s = "hello"
โ†’ "olleh"

Submit also runs 3 hidden tests, including edge cases.

console.log output is shown below