RPGDATA = {
turkey: 'Leg',
chicken: 'Muffin'
}
var tempdata = RPGDATA;
RPGDATA.turkey = 'NoLeg';
console.log(tempdata); // Why is this showing NoLeg? It should be 'Leg'?
console.log(RPGDATA);
On jsfiddle: http://jsfiddle.net/njxd7eLy/1/
When console logging tempdata, it is showing the properties of the new object with the changes applied?
Edit: Look here for an example: http://jsfiddle.net/zLeufxfm/ The old data is stored in that tempdata variable, but it is not with an object?