Q. Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow'
'word' => 'drow'
function solution(str){
return str.split("").reverse().join("");
}
let str = 'world';
//'dlrow'
reverse( )
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse