Build a Calorie Counter - Step 47

Tell us what’s happening:

I reset the code multiple times but to no avail. I keep getting the same error

  1. You should have a label element inside your template literal.

  2. Your labelelement should have the text Entry ${entryNumber} Name.

Your code so far

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

/* file: styles.css */

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

  const HTMLString = `<label>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/135.0.0.0 Safari/537.36

Challenge Information:

Build a Calorie Counter - Step 47

Hi @vinay.sekhar

Your code is missing line breaks.

Please reset the code to restore the seed code.
Enter the label element in the empty line, do not remove the line breaks.

Happy coding

Thank you! Appreciate it. I just fixed it. Why does the line breaks matter?

you are writing a string, those matter in a string

Thanks for clarifying.