Learn Form Validation by Building a Calorie Counter - Step 48

Tell us what’s happening:

Hi,

I have created the input and am not sure where I am going wrong?

Can someone please tell me where I am going wrong?

Your code so far

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

/* file: styles.css */

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

function addEntry() {
  const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
  const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
  const HTMLString = `
  <label for="${entryDropdown.value}-${entryNumber}-name">Entry ${entryNumber} Name</label>`;
  <input type="text" placeholder="Name" id="${entryDropdown.value}-${entryNumber}-name">
}



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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 48

hi, Please look at what the challenge has asked you to do

on a new line in your template string,
so you need to add your input element in your template literal

Add your new input before the closing template literal on a new line.
For this you need to place the cursor before the closing template literal and press enter, then add your new input elem.