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.