Learn Form Validation by Building a Calorie Counter - Step 44

Tell us what’s happening:

Inside the template literal, I am trying to create a label element and give it the text Entry # Name. Using the template literal syntax, I want to replace # with the value of entryNumber.

Your code so far

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

/* file: styles.css */

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

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

// 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/123.0.0.0 Safari/537.36 Edg/123.0.0.0

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 44

Hi there! There are no requirements to declare a variable in this step

1 Like

In this step, declaring a variable is not necessary.

Thank you for the help

1 Like