Combine the arrays into a string using join with \n as the delimiter.
console.log([1, 2].join(',') + '\n' + [3, 4].join(','));
Output:
1,2 3,4
Combine the arrays into a string using join with \n as the delimiter.
console.log([1, 2].join(',') + '\n' + [3, 4].join(','));
Output:
1,2 3,4