結果 : check number of digits in a number javascript