how to concat two arrays into a new array code example Example: javascript concat two arrays //ES6 const array3 = [...array1, ...array2];