結果 : sum of digits of a number in javascript using while loop