// With rest parameters, you can define a function to store multiple arguments in a single array
function sayHello(message, ...names){
names.forEach(name => console.log(`${message} ${name}`));
}
sayHello('Hello', "John", "Smith", "Doe");
/*
output:
Hello John
Hello Smith
Hello Doe
*/
// The ... is what makes names a rest parameter.