結果 : check if digit javascript