concat in es6 code example
Example 1: js string concatenation es6
let str=`JavaScript first appeared ${a+b} years ago. Wow!`;
Example 2: es6 concat array
let fruits = ["apples", "bananas"];
let vegetables = ["corn", "carrots"];
let produce = [...fruits, ...vegetables];
//["apples","bananas","corn","carrots"]