Learn Form Validation by Building a Calorie Counter - Step 41

Tell us what’s happening:

I’m unable to locate the error in the code.Can everyone assist me with this step?

Your code so far

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

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

function addEntry() {
  const targetId = '#' + entryDropdown.value;
  const targetInputContainer = document.querySelector(`${targetId}.input-container`);
}

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 41

You missed this part of the instruction. You manually add the spaces:

be sure to keep the space between your targetId variable and .input-container . Reset if you need to see what it looked like before and where the space was.