5 lines
200 B
JavaScript
5 lines
200 B
JavaScript
function greet(...names, message) { // SyntaxError generated
|
|
console.log(message + ' everyone!');
|
|
names.forEach(name => console.log('Hi ' + name));
|
|
}
|
|
greet('Welcome', 'Mary', 'John', 'James'); |