Learn Basic JavaScript by Building a Role Playing Game - Step 110

Tell us what’s happening:

I have created the function but struggling with the second part

Your code so far

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

/* file: styles.css */

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

function fightSlime() {
fighting = 0;
}

// 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/124.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 110

Make sure to re read the error message carefully

You haven’t done this part

You should call the goFight function.

If you don’t remember how to call functions, then let us know

could you remind me how to do it

sure

Here is the syntax

myExampleFunction()

here is also an article about functions with more examples

You also called functions here with calling the update function

function goTown() {
  update(locations[0]);
}

function goStore() {
  update(locations[1]);
}

function goCave() {
  update(locations[2]);
}

like this

function fightSlime()
 {
goFight()
}```

This part is correct when calling a function

but it looks like you deleted the other stuff that was there.

you need to make sure you have both parts to pass the test