--- id: 5ddb965c65d27e1512d44d9e title: Step 5 challengeType: 0 dashedName: step-5 --- # --description-- By default, `onsubmit` will pass the event object as a parameter to the function it calls. People usually call it `e`, short for event. Update the `calculate()` function to accept `e` as parameter. Here is an example of an empty function called `square` that takes a `number` as a parameter: ```js function square(number) {} ``` # --hints-- See description above for instructions. ```js assert(calculate.toString().match(/function calculate\(\s*e\)\s*\{\s*\}/)); ``` # --seed-- ## --before-user-code-- ```html

Calorie Counter

Sex
Breakfast
Lunch
Dinner
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```