結果 : check if input is nan javascript