To convert array into string without comma and separated by space in JavaScript without concatenation, we call the join
method.
For instance, we write
const str = array.join(" ");
to call array.join
with a space as the separator to return a string with the items in array
joined together.