title: Variable value is not changing according to the variable
body: <p>So here's the thing. I've declared the following variables to concat my object:</p>
  
  <pre><code>    var newObj = obj[property];
      var fullObj = newObj[id];
  </code></pre>
  
  <p>Then I'm matching the value of "fullObj" with the value of another obj named "Array". I do it like this: </p>
  
  <pre><code>fullObj  = Array;
  </code></pre>
  
  <p>Then "fullObj" gets the new value, but the original object, which is something like: "obj.property.id" does not. Any ideas?</p>
  
  <p>EDIT: </p>
  
  <p>This is the function</p>
  
  <pre><code>function updateData(obj, Array, id, property) {
      var newObj = obj[property];
      var fullObj = newObj[id];
  
      fullObj = Array;
  }
  </code></pre>
  
  <p>The property that I'm sending back is "obj", with all its inner elements (obj.property.id). </p>
  
  <p>As you can see, "fullObj" is the same thing as saying that last object construction. Imagine something like "object.id["0"]. So imagine the value of "Array" is "object.id["1"]. I'm giving "fullObj" that value by matching them both, but the original object won't get it. </p>
  
  <p>Am I being clear enough?</p>