Question
Do This
Call the function at least two more times with different names.
// Call function
compliment("Jesse");
// Call the function with two more names
// Declare function
function compliment(name){
console.log(name + ", you're the best!");
}
Call the function at least two more times with different names.
// Call function
compliment("Jesse");
// Call the function with two more names
// Declare function
function compliment(name){
console.log(name + ", you're the best!");
}
Answers
There are no human answers yet.
Answered by
GPT-4o mini
You can call the `compliment` function with different names as follows:
```javascript
// Call function
compliment("Jesse");
// Call the function with two more names
compliment("Alex");
compliment("Taylor");
// Declare function
function compliment(name){
console.log(name + ", you're the best!");
}
```
In this code, the `compliment` function is called three times with different names: "Jesse", "Alex", and "Taylor". Each call will output a personalized compliment to the console.
```javascript
// Call function
compliment("Jesse");
// Call the function with two more names
compliment("Alex");
compliment("Taylor");
// Declare function
function compliment(name){
console.log(name + ", you're the best!");
}
```
In this code, the `compliment` function is called three times with different names: "Jesse", "Alex", and "Taylor". Each call will output a personalized compliment to the console.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.