Learn Form Validation by Building a Calorie Counter - Step 46

Tell us what’s happening:

I need help checking my code. It is as follows:

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

Is there something I’m missing as to why it won’t pass the tests?

Your code so far

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

/* file: styles.css */

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

<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/125.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 46

I fixed it. Looks like I needed to relocate the HTMLString variable back into the block of code above the entry input.