what is the best way to merge two arrays into one array javascript code example Example: javascript concat two arrays //ES6 const array3 = [...array1, ...array2];