diff --git a/app.js b/app.js index e08c31f..6785802 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,6 @@ -function greet(...names, message) { // SyntaxError generated - console.log(message + ' everyone!'); - names.forEach(name => console.log('Hi ' + name)); +function display(char1, char2, char3, char4, ...others) { + console.log(others); + console.log(char1, char2, char3, char4); } -greet('Welcome', 'Mary', 'John', 'James'); \ No newline at end of file +let letters = 'abcdefgh'; +display(...letters); \ No newline at end of file