Learn Form Validation by Building a Calorie Counter - Step 45

Tell us what’s happening:

i have tried everything here. currently, i have :
const HTMLString = ${};
and it says:
Your addEntry function should have an HTMLString variable.

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 = `${ }`;
}

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 45

assign it an empty template literal string.

It said “empty”.

“Empty” means have nothing in it. Like, "" is an empty string.

Your literal string:

has ${ } in it, so it’s not empty.

4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.