Learn Form Validation by Building a Calorie Counter - Step 44

Tell us what’s happening:

it says "You should pass the string input[type="text] to the querySelectorAll() method even though i already have…

Your code so far

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

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

function addEntry() {
  const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
  const entryNumber = targetInputContainer.querySelectorAll.('input[type="text"]').length;
}

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 44

you can’t have a dot and a bracket.
Since you’re making a function call, it should be a bracket without a dot

1 Like

thank you so much! :sob::sob:

1 Like