Learn Form Validation by Building a Calorie Counter - Step 49

Cool. Just don’t use AI to write your responses please

This still hasn’t been addressed in your code

You write: “Cool. Just please don’t use artificial intelligence to write your answers.” I can answer you that I have never used it, I do not use it and I will not use it, because I like to answer all posts myself, training my command of English in different communication styles, being a linguist and a philologist.

Cool. That sounds like it was written by AI

It sounds like, but it’s written by me and only me.

Yes, I understand that you deny using AI and claim to naturally switch between using multiple spelling and grammar errors and using a style like GPT. :person_shrugging:

Have you worked on this but about putting the new code on a new line yet?

This may be caused by the fact that I am coding. Any AI is based on the codes embedded in it. And who puts them there? Programmers like you, me in the future, and so on. Hence, the possession of a communication style like Ai can be characteristic of any programmer.

That’s not really how any of that works

Have you tried to put the new element on a separate line yet?

I’ll be working now. Before that, I replied to your messages, there was no time to deal with the code.

If you’re not using AI that’s fine there’s no need to even reply about that.

Please just focus on the advice and fixing your code.

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

I’ve made so, but the developer console writes again: Sorry, your code does not pass. Keep trying.

You should add an input element on a new line.

Why did you add it like this?

I did it so as I’ve understood the task. And how should I do so that it’ll be correct?

Please try to explain why you think that would work. What you wrote doesn’t seem to be consistent with any syntax rules covered in courses so far, so I don’t understand why you tried to structure your new code like that. For example, I don’t understand why a new } was added.

As with the previous times you’ve asked, it’s against the rules for us to just give you the solution.

I’ve done it according to this part of instruction: " Give it a type attribute set to text , a placeholder attribute set to Name , and an id attribute that matches the for attribute of your label element." All the demands of this type are written in my code. Or is the instruction incorrect?

Again, just copy-pasting the instructions is still not helpful.

You have not met the ‘demands’ of the instructions. It helps if you engage with what people are saying so we can help you fix your code.

Well, if you do not copy the instructions and do not comply with its requirements, then how do I complete the task?

Again, it helps if you read and respond to what people say to you. Copy-pasting the instructions doesn’t engage with the people trying to help you. We can, and have, read the instructions.