Yeah, I was not worrying about hoisting. The value of the ch is undefined at this point, thus forcing allDigits be false all the time. Thanks for changing.