How can I write array items like string. Example: [1, 2, 7, 9, 12] = 127912 [John, Mike, Jeremy] = JohnMikeJeremy
Use Array.prototype.join()
const elements = [1,2,3,4]; console.log(elements.join('');