You use the spread syntax in an array like [...array]. Remove it and convert the array back to a string using .join(" ") at the end. So that you have something like:
Hello @nibble and thanks you for your help,
I have found about .join(" ") method but I was wondering why I can’t use spread syntax like this, while using :
const arr = [1, 2, 3, 4, 5];
console.log(...arr); // same as console.log(1, 2, 3, 4, 5)
with console.log because it is a function taking the elements of the array as arguments. But outside an array or a function invocation, you can’t use the ... syntax. Read more at MDN.