Build a Calorie Counter - Step 45

Tell us what’s happening:

I know I did this right; however, it’s not going through! Ugh! I don’t think I like coding very much;

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;
}

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

Challenge Information:

Build a Calorie Counter - Step 45

Oh yes, and I already tried (`input[Type = “text”].length +1; It didn’t work either.

Hi @BooBoo212

Try replacing the backticks with single quote marks for the entryNumber variable.

Happy coding