What's wrong with this simple javascript code .. It doesn't alert
<p>I have just started learning some javascript and the code below doesn't alert anything .. what's wrong with the code ...</p>

<pre><code>&lt;html&gt;
&lt;head&gt;&lt;title&gt; javascript &lt;/title&gt;

&lt;script type="text/javascript"&gt;
function text(test)
{
  alert(test);
 }
 text("It works");

 &lt;/script&gt;
 &lt;/head&gt;
 &lt;/html&gt;
</code></pre>
