convert array to string javascript without commas code example
Example 1: javascript array to string without commas
arr.join("")
Example 2: javascript array to string without commas
[1, 2, 3].join(""); // 123
Example 3: javascript array to string with comma
let numbers = [0, 1, 2, 3];
let numbersToString = numbers.toString();
console.log(numbersToString);
// output is "0,1,2,3"