--- id: 5ddb965c65d27e1512d44d9f title: Part 6 challengeType: 0 isHidden: true --- ## 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.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(calculate.toString().match(/e\.preventDefault\(\s*\)/)); ```
## Challenge Seed
```html ```
### Before Test
```html

Calorie Counter

Sex
Breakfast
Lunch
Dinner
```
### After Test
```html ```
## Solution
```html ```