swap() function for variables's values
<p>I am not able to achieve the desired result for this swap function below, where I want the values printed as 3,2 </p>

<pre><code>function swap(x,y){
 var t = x;
 x = y;
 y = t;
}

console.log(swap(2,3));
</code></pre>

<p>Any clue will be appreciated !</p>