consider the following code
var pub_json_general = {"holis":["12/10/2013","12/25/2013","12/26/2013"]};
var holiday = {"holis":["12/02/2013"]};
var pub_json = pub_json_general;
pub_json.holis = $.merge(pub_json.holis,holiday.holis);
After merge, the length of pub_json.holis becomes 4, that's correct. However, when I use firefox debugger, I found that pub_json_general.holis would also be changed, that means pub_json_general and pub_json would always be the same.
So is that "=" operation in javascript is not copying the right-hand side and create the left-hand side to store it but just create the left-hand side which will share the the same memory space with right-hand side?