kata
Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow'
'word' => 'drow'
my answer
function solution(str){
return str.split('').reverse().join('');
}
best answer
function solution(str){
return str.split('').reverse().join('');
}