Learn form validation by building a calorie counter step 45

Step 46

Inside your template literal, create a label element and give it the text Entry # Name. Using your template literal syntax, replace # with the value of entryNumber.

 const HTMLString = `<label>Entry ${entryNumber} Name</label>`;

I’m at a loss as to why this won’t work. Could anyone enlighten me?

Welcome to the forum.


  const HTMLString = `

from your code. It’s already provided on line 22 above.

For the next time, you can create a help post on the forum by press the “Help” button.