Copy the code code as follows:
<html>
<head>
<title>Concat() method of array</title>
<script>
/*
Array concat() method:
1. This method does not change the existing array, but only returns a copy of the connected array.
2. Return a new array. The array is generated by adding all arrayX parameters to arrayObject.
If the argument to the concat() operation is an array, then the elements in the array are added, not the array.
*/
var arr1 = [123,"aaa"];
var arr2 = [false,333];
var arr3 = [true,"ddd"];
//You can continue to connect arrays or other elements
document.write(arr1.concat(arr2,arr3,"vvv") + "<br/>");//123,aaa,false,333,true,ddd,vvv
//The original array has not changed
document.write(arr1);//123,aaa
</script>
</head>
<body>
<div id="time"></div>
</body>
</html>