0

<html>
<body>

<h1>JavaScript Arrays</h1>
<h2>The concat() Method</h2>

<p>The concat() method concatenates (joins) two or more arrays:</p>

<p id="workingcode"></p>

<script>
const arr1 = ["Java", "ServiceNow", "PHP"];
const arr2 = [ "JavaScript", "Angular"];

const concatval = arr1.concat(arr2);
document.getElementById("workingcode").innerHTML = concatval;
</script>

</body>
</html>

The concat() method concatenates (joins) two or more arrays:
admin Changed status to publish December 19, 2023