Difference between jquery extend and simple copying a variable
<p>I understand advantages of using jquery extend but are following two cases exactly similar or is one better than other and why?</p>

<pre><code>obj1 = $.extend(true, {}, elements);
</code></pre>

<p>..</p>

<pre><code>obj1 = elements;
</code></pre>

<p><strong>Update:</strong>
Answer Explanation:
Following should clear the confusion</p>

<pre><code>​obj = {"value":4};
obj_test = obj;
obj.value = 5
alert(obj_test.value);
</code></pre>

<p>​</p>
