$ 0 0 var a=[1,2,3]b=JSON.parse(JSON.stringify(a));document.getElementById("demo").innerHTML = b;<p id="demo"></p>