Thursday, 1 March 2012

Connecting two array code


<html>
<body>

<script type="text/javascript">

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

</script>

</body>
</html>

No comments:

Post a Comment