javascript array tostring with spaces code example Example: javascript array to string without commas arr.join("")