Reverse given string

Question: Create a function that takes a string as its argument and returns the string in reversed order.

Answer:

function reverseString(s) {

var newArr = s.split('');

newArr = newArr.reverse().join('');

return newArr;

}

Test ->¬†reverseString(‘Think different.’);