-1

I have an array like this -

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

I want the string output like this -

"This is array"
1
  • What is the problem you experienced when doing this? Commented May 7, 2020 at 12:25

1 Answer 1

-1

Just simply use join() method of array -

const string = arr.join(' ');
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.