結果 : reverse a string in javascript using while loop