Enter age javascript error : <p>Can anyone tell me what's wrong with this specific code and how can I fix it? Thanks in advance. </p>

<pre><code>&lt;script language=javascript type="text/javascript"&gt;  
toDays(21);
function toDays(years)
{
    var time;
    time = 365*years;
    return time;
}       
document.write("My age is " + time); 
&lt;/script&gt; 
</code></pre>
