123<title> concat () method for arrays </title>4 5<script>6 /* 7 the Concat () method of the array:8 1, the method does not change the existing array, but only returns a copy of the concatenated array. 9 2. Returns a new array. The array is generated by adding all the Arrayx parameters to the Arrayobject. Ten if the argument for the concat () operation is an array, then the element in the array is added, not the array. One */ A - varARR1 = [123, "AAA"]; - varARR2 = [false, 333]; the varARR3 = [true, "DDD"]; - //you can continue to concatenate 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> + A at -<body> -<div id= "Time" ></div> -</body> - -Concat () method for arrays in JavaScript-array joins