Here's some code that has two arrays(np and op), one a copy of the other
However, when I modify the copy, the original is also modified! take a look:
<script type="text/javascript">
var op=new Array(0, 0);
var np=op;
np[1]=2;
document.write(op+"<br>")
document.write(np)
</script>
Is there any way to retain the original and modify the copy?