--- id: 5ddb965c65d27e1512d44d9f title: Step 6 challengeType: 0 dashedName: step-6 --- # --description-- When a form is submitted, the browser will try to submit it to a server and reload the page. We want to prevent this from happening and do our own processing on the client side. Prevent the default behavior of the form submit event by calling `e.preventDefault()` inside of the `calculate` function. # --hints-- See description above for instructions. ```js assert(calculate.toString().match(/e\.preventDefault\(\s*\)/)); ``` # --seed-- ## --before-user-code-- ```html

Calorie Counter

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