Generating Fibonacci sequence
<pre><code>var x=0, 
var y=1;
var z;

fib[0] = 0;
fib[1] = 1;
for(i=2; i&lt;=10; i++)
{
    alert(x+y);
    fib[i]=x+y;
    x=y;
    z=y;
}
</code></pre>

<p>I'm trying to get to generate a simple Fibonacci sequence but there no output. Can anybody let me know what's wrong?</p>
