Learn Form Validation by Building a Calorie Counter - Step 44

Tell us what’s happening:

I get that this course is still in beta, and I truly appreciate its existence and the people who made it possible. However, as a newbie, I sometimes get frustrated when things get tough. Do you think I’m still on the right track, especially considering I’ve been relying on ChatGPT as a companion tool?

Your code so far

Please copy/paste all the editor code showing in the challenge from where you just linked.

function addEntry() {
  const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
  const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
  const HTMLString = `\n<label>Entry ${entryNumber} Name</label>`;

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 44

the other way is to press enter, like it said. you must press enter at the beginning of the string, and put a proper newline instead of the escape character

yes, thankfully chatgpt said it. I already passed it.

btw, ChatGPT is not always going to be helpful, you can always ask here

1 Like