Learn Form Validation by Building a Calorie Counter - Step 88

Tell us what’s happening:

I’m lost on step 88, I’m not sure what I’m doing wrong.
It says I need to pass “submit” as the first argument of the addEventListener() function which is exactly what I did. Also I’m not very sure where to put the calculateCalories() function as they told me to.
Would appreciate the help a ton.

Your code so far

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

/* file: styles.css */

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

calorieCounter.addEventListener(submit);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 88

Welcome to the forum @hashemsioufi2005

Please use the code already in the editor one line above, to structure the .addEventListener

Happy coding

1 Like