In JavaScript objects are copied by reference not by value.