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
