My question is about [quote] alert(Invalid Input: ${invalidInputMatch[0]})
[/quote]. I don’t understand what zero part of ${invalidInputMatch[0]}. Does this mean invalid input is housed in
invalidInputMatch[0]
If not, why does invalid input point to this value invalidInputMatch[0]?
Where does this value come from? I am very confused about this line alert(`Invalid Input: ${invalidInputMatch[0]}`);. I do not understand this line, and I have gone through this more than once.
Thank you for your response. I am not trying to be a hard a**. I don’t understand why it’s always reading ‘’‘invalidInputMatch[0]’‘’. It is not clear what’s
in ‘’‘invalidInputMatch[0]’‘’ even with a few more steps down the road. What’s in ‘’‘invalidInputMatch[0]’‘’?
You should see this alert show up displaying the input you provided. For the context of the calorie counter, this input of 2e10 would be considered invalid because we only want to deal with regular number values. Not scientific number values.