Learn Form Validation by Building a Calorie Counter - Step 47

Tell us what’s happening:

Step 47
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>;

##Errror: You should have a label element inside your template literal.
I don’t know how to fix this error. Please help me

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

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

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 47

Hi and welcome to the community!
Your code is correct. You may have removed something else unintentionally so reset this step and add your code again.
Good luck!

1 Like

I don’t know how to reset the step anymore, I try to redo the project but I can’t

In the project page, the step you’re working on, below the “Check Your code” there should be a “Reset” button.
Good luck!