For this challenge I know where I should do +1 but i don’t know why I should do +1. And I don’t know what’s going on this code . I just know that they are variables, functions, template literals but I don’t know what they doing there. Is it normal to have that? Or i am missing something should start learning again from the beginning? How to figure out what’s my weak point? Please Help and give me some suggestions . I will appreciate that very much.
I think they explained why though? (because when you first query for the input[type="text"] there are none there? So this means the list of elements is length of 0 which will make the current code write out Entry 0 which is not desired as we want it to type Entry 1?
If you have a question about a specific line of code, please specify it.
Though I can’t say this is common, it happens to most student developers more so if one is fresh from learning javascript or learning it as a beginner
I suggest you look things up, like Google stuff, ask Google “Why do we add a number after the length property” I am sure it’ll give you some meaningful responses. Though FCC explains concepts, look up what you do not understand.
In conclusion, I’d say it’s quite common for one to be following instructions for writing code and yet have no idea how things work.
Thank You . But wasn’t asking for the solution. I asked that I am not understanding what the code is doing that I have written till this step. Do I need to repeat that from the beginning again.
OK. If you know the answer, why not complete it as asked and then compare how the Calorie counter looks in the preview window in both steps 53 and 54? You will see that they now start from entry1 which makes much more sense to a user than Entry 0, which is the result of zero based numbering.