const array1 = [1, 2, 'a', '1a']; console.log(array1.toString()); // expected output: "1,2,a,1a"
JavaScript Demo: Array.toString()
Run ›
Reset