Let’s say I have the following object:
var lol = {
section: {},
other: {foo: 'bar', foob: 'baz'}
};
Now if I do the following:
lol.section.other = lol.other;
will a reference be made linking section.other to other or will the entire other object be copied and placed in section?
You’re creating two references to the same object.
Javascript objects are never implicitly copied.