Learn Form Validation by Building a Calorie Counter - Step 44

#hello Everyone i am facing a challenge with this issue

Step 44

Start your HTMLString with a new line, then create a label element. Give that element the text Entry # Name, using your template literal syntax to replace # with the value of entryNumber.

To Solve that i am making this function …

function addEntry() {
const targetInputContainer = document.querySelector(#${entryDropdown.value} .input-container);
const entryNumber = targetInputContainer.querySelectorAll(‘input[type=“text”]’).length;
const htmlString = <label>Entry ${entryNumber} Name</label>;

where is my fault ?

Welcome to the forum @omar.lu86

  1. You need to use template literals.
  2. Check the casing on the follow variable:

Happy coding

" Start your HTMLString with a new line" it’s literaly like that! Use the template literals.