Learn form validation by creating a calorie counter step 63

The below instructions for step 63 are confusing because it tells you to put "Invalid Input: " inside the alert function, while the correct response requires you to put ( invalid input: ) without the brackets to progress.

Browsers have a built in alert()`function, which you can use to display a pop-up message to the user. The message to display is passed as the argument to the alert() function

Using a template literal, in your if block, call the alert() function to tell the user "Invalid Input: ", followed by the first value in the invalidInputMatch array.

Please post a link to the Step. Thanks

Welcome to the forum @Randalthor7

What have you tried so far?

So the forum can assist please post your full code.

Use the following method to post code to the forum:

  1. On a separate line type three back ticks.
  2. On a separate line paste your code.
  3. On the last line type three back ticks. Here is a single back tick `

Happy coding

The double quotes indicate a string value. Ordinarily you would use the double quotes, but they are being replaced in this case with the template literal backticks.