Calorie Counter - Step 56

Tell us what’s happening:

You should have a for...of loop that loops through the list parameter. Use item for the loop’s variable name.
I am not sure what i’m doing wrong. Thank you for any tips.

Your code so far


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

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

function getCaloriesFromInputs(list) {
  let calories = 0;
  for (const items of calories) {
    (i = 0, i <= list.length, i++);

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 Edg/

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 56

Welcome to the forum @onetruenewb

Is this supposed to be plural?

Was this the argument passed to the function?

Happy coding

Thank you Teller, I was able to figure it out!
Much appreciated.

1 Like