-5

How can I write array items like string. Example: [1, 2, 7, 9, 12] = 127912 [John, Mike, Jeremy] = JohnMikeJeremy

maxmiljan
  • 9
  • 3

1 Answers1

0

Use Array.prototype.join()

const elements = [1,2,3,4];
console.log(elements.join('');
Linek
  • 1,353
  • 10
  • 20