Question: I have an array say arr1 = ["Review", "Journal Article"]
I need to display it in a specific format like 
arr2 = ["Review , Journal Article"]

Input :

```
arr1 = ["Review", "Journal Article"]

```

Expected Result:

```
arr2 = ["Review , Journal Article"]

```

Answer: 
You can do:

```js
const arr1 = ["Review", "Journal Article"];
const arr2 = [arr1.join(' , ')];

console.log(arr2);
```
In your case with an array you can achieve what you want like this:

```
var output = ["Review", "Journal Article"].map(x => '"' + x + '"');
output[0] = "[" + output[0].substring(1);
output[output.length - 1] = output[output.length - 1].substring(0, output[output.length - 1].length - 1) + "]";
var str = "arr2 = " + output.join(", ");

```