-1

I have an array like this -

var arr = ['This', 'is', 'array']

I want the string output like this -

"This is array"
John
  • 3
  • 1

1 Answers1

-1

Just simply use join() method of array -

const string = arr.join(' ');
Satnam Singh
  • 324
  • 2
  • 12