Let's say we have an array in Javascript like this:
var arr = ['item1', 'item2', 'item3'];
I need to concatenate all the values in the array into a single variable. The resulting variable should look like this:
var items;
console.log(items); // item1, item2, item3