const printGreetings = function(names) {
names.forEach(name => console.log(`Hello, ${name}!`));
}
printGreetings(["John", "Jane", "Michael"]);
// Output:
// Hello, John!
// Hello, Jane!
// Hello, Michael!