const obj = { id: 1, nested: null } obj.nested = obj; console.log(obj)
Why this code is created nested obj inside nested key and keeps going on? I know that array and object is pass By Reference in javascript.