Learn Form Validation by Building a Calorie Counter - Step 43

Tell us what’s happening:

Step 43

Now you need to build your dynamic HTML string to add to the webpage. Declare a new HTMLString variable, and assign it an empty template literal string.

Your code so far

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

Your browser information:

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 43

for empty template literal, it means an empty string using backticks


redacted solution

hey @Zan1

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

@Zan1 Please stop posting the solution code. This is the third time you have been given this warning.

Make sure to check all of your curly bracers, I was stumped on this for a while and come to find that a crucial curly bracer was removed.

if you cloud be more specific in your test requests we could understand it better and maybe you will have no need for help at all, most of the times the instructions are very confusing !

if you have specific feedback, that could be actionable. If you are stuck on a step please use the Ask for help button