function(&param) - like in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3877675/javascript-pass-variables-through-reference">JavaScript Pass Variables Through Reference</a>  </p>
</blockquote>



<p>How can you do something like this in javascript?</p>

<p>In PHP you can put a <code>&amp;</code> in a function in front of the parameter to write directly back to the variable.. How can you do something like this in javascript?</p>
