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!");
}

1 answer

You can call the compliment function with different names as follows:

// 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.