1. Concat()

The most basic way is by using the concat() method and concating two different arrays.

It’s very simple. You have to define two arrays and combine them as shown below.

Remember the sequence matters!

Preview of the code