Learn Form Validation by Building a Calorie Counter - Step 43

Tell us what’s happening:

Sorry, your code does not pass. Don’t give up.
Your HTMLString should be an empty template literal

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 43

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Well im stuck, my HTMLString is empty, im not sure what im doing wrong for the code to not pass

Hi @travonflynn

Your code is for an empty string.

Your HTMLString should be an empty template literal.

Happy coding

1 Like