Learn Form Validation by Building a Calorie Counter - Step 44

Tell us what’s happening:

Error Message: Your HTMLString variable should start with a new line.
I want to know: The answer. I want to just go next lesson.

### Your code so far

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/120.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 44

Hi there, you need to get rid of the \n im not sure what that is for, and also the error says it needs to start on a new line so before your opening tag press enter and that will start your code on a new line, hope this helps, good luck

3 Likes

As a non-English speaker, I did not understand the error statement. Thanks to you my problem has been solved. Thank you so much.

2 Likes

Quote from the exercise: “Start your HTMLString with a new line”.
Doesn’t this mean putting a \n at the start of the string? I was losing my mind on this one.
Is this poorly worded, am I overthinking things or am I just that bad at understanding english (non native here)?

3 Likes

I jumped ahead to step 45.
You have to put the next line of code on line 23

As a native english speaker, I was also confused! I felt silly once I saw that that was an instruction for writing the code, not a desired result for the code

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