title: Generating Fibonacci Sequence
body: <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. </p>
  
  <p>Can anybody let me know what's wrong?</p>