結果 : how to reverse a number in javascript using for loop