transfer data in functions ? Javascript
<p>how can i transfer certain data in function like <code>test()</code>;</p>

<p>I saw some people did this like putting the data in the brackets like test(data);</p>

<p>When the function executes it will use the data
 for example:</p>

<pre><code>$('#element').click(function(){
  test(somedata);
});

function text();{
//how can i get the data stored
}
</code></pre>

<p>am i doing it right? or is there a better way to do this?</p>
