getNumber what if it's blank?

Hi there,

I’m trying to figure out what happens if the code asks for a user input, but the user input is blank?

what would be stored into the variable?

My assumption is that it would be whatever was stored when the variable is instantiated, but according to the “watchers” it’s reset to NaN.

I’m just trying to figure out how to have a “code” have an error message when no user input is registered.

Here’s the code for those of you who may be able to help: