Learn Form Validation by Building a Calorie Counter - Step 46

Tell us what’s happening:

I’ve tried to fix this code, but almost my idea was wrong.Please teach me what’s happening on my circumstance.

Your code so far

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

/* file: styles.css */

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

  const HTMLString = `
<label for="${entryDropdown.value}-${entryNumber}-name">Entry ${entryNumber} Name</label>`;

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 46

Welcome to the forum @apple.hero.syouman

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 .

The instructions did not ask you to include a for attribute, so you need to remove that.

Happy coding