Learn Form Validation by Building a Calorie Counter - Step 67

Tell us what’s happening:

this step asks to create a caculateCalories function, however the code to do so is already included. I have looked at the following step and the code is unchanged from the start of this step. is this an error?

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region


function calculateCalories(e) {
  
}

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 67

Hello. Your code is correct. Try and reset the lesson via the reset button and rewrite your current code. Hope this helps.

my problem is that I didn’t not write this code!! It is already provided at the start of this step. If I reset the lesson, will I need to redo the entire project?

I do not know how the code was already here.
If you reset the lesson, it does not reset the entire project, just the step.

thank you so much, it worked!

1 Like