I know you can do this through looping through elements of array and concatenating. But I\'m looking for one-liner solutions. toString() and join() returns string with eleme
pass a delimiter in to join.
join
['apple', 'tree'].join(' '); // 'apple tree'