return statement
<p><em>I think I have missunderstod the syntax, I need a [generic energy drink]. It returns the same value.</em></p>

<pre><code>var tal1 = antalAr(1000000,1000);
document.writeln("A loan of 1000000 SEK is paid after " + 
Math.ceil(answer) + " years if the installment is 1000kr/mån.");


var tal2 = antalAr(1500000,500);
document.writeln("A loan of 1500000 SEK is paid after " + 
Math.ceil(answer) + " years if the installment is 500kr/mån.");

        function antalAr(lan, amortering)
        {
            amoyear = amortering * 12;
            for( var answer = 1; amoyear * answer &lt;= loan; answer++){}
            return answer;
        }
</code></pre>
