Learn Form Validation by Building a Calorie Counter - Step 46

Tell us what’s happening:

Need help on Javascript step 46. I dont know how to create the label element.

Your code so far

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

/* file: styles.css */

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

  const HTMLString = ` ${label} Entry ${entryNumber} Name  

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 46

Hi @berndtdenniscanaya

You should have a label element inside your template literal.

Where is your html label element?

Also, create the label element on a new line.

Happy coding

I already tried writing this but it still wont work.

  <label>
    Entry ${entryNumber} Name
  </label>

Try placing everything on a single line.

1 Like

Thank you very much, it worked :slight_smile:

1 Like