JSFiddle - React, Tailwind, and code Playground

by ClarenceDowns

JavaScript

var arr1 = ["c", "r", "go", 2, 4];

var arr2 = ["Let's go", "to the end"];

var arr3 = [...arr1, "something in the middle", ...arr2];

console.log(arr3);