Lets say you have the following complex object:
var object1 = .... // (something complexed)
This takes up x amount of memory i
x
Objects are always passed by reference in JavaScript (see this popular answer). Pointer to an object takes some amount of memory (depends on implementation), of course, but much less than the actual object.