Visual Explanation: JavaScript Array.concat()

Today we are going to learn about another JavaScript method under the Array class called .concat().

What this method does is it merges two or more arrays. This method outputs the new merged array without altering the original arrays. Let’s show an example.

We have two arrays: