Learn Function Basics - Learn Function Basics Lesson A

Tell us what’s happening:

Is that answer right? I thought its the name of the function!

The question is:

What does the parameter in the function favoriteAnimal represent in the context of JavaScript functions?

The actual value that is used when calling the function.

A placeholder for the value that will be passed to the function when it is called.

The name of the function.

The result of the function execution.

And the function is:

function favoriteAnimal(animal) {
  return animal + " is my favorite animal!"
}

console.log(favoriteAnimal('Goat'));

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0

Challenge Information:

Learn Function Basics - Learn Function Basics Lesson A

what part of the function is the parameter?

The one between the parenthesis animal

yeah, and that is not the function name, because the function name is something else, right?

Ohh yeah i get it, i thought they are asking about the favoriteAnimal itself not its parameter. Thank you

it’s saying “parameter” tho

Thank you for the clarification