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

Tell us what’s happening:

i dont know how to call function pls help

Your code so far

function fightSlime(goFight) {

fighting = 0

}

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Your issue is here

The directions want you to call the the goFight function.
Not add it as a parameter.

So remove that from your parameter list and below your fighting=0 and call the function.

Here is a reminder on how to call functions.

someFunctionName()
1 Like