1. Concat()

The most basic way is using the concat() method. It’s very simple; you just have to define two arrays and combine them as shown. (Remember the sequence matters.)

let firstArray = [1,2,3,'Shinchan']
let secondArray = ['Nohara',4,5,6]
let combinedArray1 = firstArray.concat(secondArray)
let combinedArray2 = secondArray.concat(firstArray)

console.log(`Combined Array1 = `+combinedArray1)
// Combined Array1 = 1,2,3,Shinchan,Nohara,4,5,6

console.log(`Combined Array2 = `+combinedArray2)
//Combined Array2= Nohara,4,5,6,1,2,3,Shinchan

1. Concat()
The most basic way is using the concat() method. It’s very simple; you just have to define two arrays and combine them as shown. (Remember the sequence matters.)
let firstArray = [1,2,3,’Shinchan’]
let secondArray = [‘Nohara’,4,5,6]
let combinedArray1 = firstArray.concat(secondArray)
let combinedArray2 = secondArray.concat(firstArray)

console.log(`Combined Array1 = `+combinedArray1)
// Combined Array1 = 1,2,3,Shinchan,Nohara,4,5,6

console.log(`Combined Array2 = `+combinedArray2)
//Combined Array2= Nohara,4,5,6,1,2,3,Shinchan […]