Seeming success in copying an array : Join : Array JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Array » Join »

 

Seeming success in copying an array

















<html>
<head>
<title>Seeming success in copying an array</title>
<script type="text/javascript" language="javascript">
<!-- //
function CopyArray(){
    var myArray = new Array(1,2,3);
    var myCopy  = myArray;
    var ma = myArray.join(", ");
    var mc = myCopy.join(", ");
    alert(ma);
    alert(mc);
}
// -->
</script>
</head>
<body onload="CopyArray()">

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Array
» Join