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