I need to make a temporary copy of a variable to make changes to. Here's what I mean:
var x = ["a", "b", "c"];
var y = x;
y[1] = "2"
//x: ["a", "b", "c"];
//y: ["a", 2, "c"];
It's worth pointing out that I'm using an object I defined myself, and not a built in data structure.