Thursday, 1 March 2012

Joining 3 arrays togeather


<html>
<body>

<script type="text/javascript">

var parents = ["a", "b"];
var brothers = ["c", "d", "e"];
var children = ["f", "g"];
var family = parents.concat(brothers, children);
document.write(family);

</script>

</body>
</html>

No comments:

Post a Comment