Learn Form Validation by Building a Calorie Counter - Step 33

HOW DO I CRACK THIS STEP?

function isInvalidInput(str) {
  const regex = /[0-9]+e+[0-9]/i;
}

Capture 0

add a plus after each of the digit character classes

The first + is in the correct place the next one is not. It should be after the digit character class, not the e.


If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.