HEAD
Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow' 'word' => 'drow'
function solution(str){
return str.split('').reverse().join('')
}
Try it yourself - CodeWars
Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow' 'word' => 'drow'
function solution(str){
return str.split('').reverse().join('')
}
Try it yourself - CodeWars