---
id: 62a3c668afc43b4a134cca81
title: Step 38
challengeType: 0
dashedName: step-38
---
# --description--
Functions are special tools that allow you to run sections of code at specific times. You can declare functions using the `function` keyword. Here is an example of a function called `functionName` - note the opening and closing curly braces. These indicate the section of code that is within the function.
```js
function functionName() {
}
```
Create an empty function named `goStore`. This will match the `goStore` variable you used earlier.
# --hints--
You should declare `goStore` with the `function` keyword.
```js
assert.match(code, /function\s*goStore()/);
```
`goStore` should be defined.
```js
assert.isDefined(goStore);
```
`goStore` should be a function.
```js
assert.isFunction(goStore);
```
`goStore` should be an empty function.
```js
assert.equal(goStore.toString(), "function goStore() {}");
```
# --seed--
## --seed-contents--
```html
RPG - Dragon Repeller
XP: 0Health: 100Gold: 50
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.