結果 : which of these is the correct way to write a function in javascript to reverse a string