JavaScript Array Concatenate using Concat() Function

JavaScript concat() Method/Function concatenate two array string.

Example

<html>
<head>
    <title>JavaScript Array concat() function</title>
</head>
<body>
    <script type="text/javascript">
        var country = ["India", "Canada", "Egypt", "England"];
        var city = ["Ahmedabad", "Toranto", "Mumbai", "Londan"];
        var details = country.concat(city);
        document.write(details);
    </script>
</body>
</html>

Run it...   »

Example Result