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

Tell us what’s happening:

Your getMonsterAttackValue should take level as a parameter.

what does this mean please

Your code so far

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

/* file: styles.css */

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

function getMonsterAttackValue() {
  
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0

Challenge Information:

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

Hi there,

Take a look at this function:

function hello(name) {
   return "Hello " + name + "!";
}
  • hello("John") will return the string "Hello John!"
  • hello("Jane") will return the string "Hello Jane!"

name is called parameter
"John"and "Jane", the specific values for name in function call, are called arguments.

The hello function takes name as a parameter.

Now, your getMonsterAttackValue should take level as a parameter.

thanks a lot really helped