Are object parameters passed as references in Javascript to functions?
<p>I have the following javascript code:</p>

<pre><code>var oLink = {
        title:   $link.attr('title') || '',
        row:     $link.attr('data-row') || '',
        $modal:  ''
    }
</code></pre>

<p>I now call a function like this:</p>

<pre><code>oLink.$modal = accessModalOpen(oLink, content);
</code></pre>

<p>Do I need to return oLink.$modal or could I just set it inside accessModalOpen? In other words is the parameter oLink passed as a reference in javascript? </p>

<p><strong>Update:</strong></p>

<p>Added $modal to the oLink declaration </p>
