title: Fibonacci sequence Javascript do while loop
body: <p>I have been going through various threads and languages on this topic but I do not seem to find a solution for setting a bar for a fibonacci sequence to stop below 100 with a <code>do while</code> loop in Javascript.</p>
  
  <pre><code>var fbnci = [0, 1];
  var i = 2;
  
  do {
     // Add the fibonacci sequence: add previous to one before previous
     fbnci[i] = fbnci [i-2] + fbnci[i-1];
     console.log(fbnci[i]);
     fbnci[i]++;
  } 
  while (fbnci[i] &lt; 100);
  </code></pre>
  
  <p>For some reason, the code above only runs once. What should I set the while condition to in order to keep printing the result until it reaches the closest value to 100?</p>