title: Javascript Fibonacci using Closures
body: <p>I am to write up some code using Javascript.  Here is what we are to do:</p>
  
  <p>"Implement a javascript Fibonacci numbers using closures. Specifically, write an function that stores two consecuitive Fibonacci numbers, initially 0 and 1. The function also defines and returns a nested function getNext(). The getNext() function updates the two stored Fibonacci numbers to the next two Fibonacci numbers and returns the current one. E.g. on the first call to getNext() the return value is 0, on the next call it is 1, then 1 again, then 2, etc."</p>
  
  <p>I kind of understand this but not really.  Could someone maybe help clarify?  Thanks!</p>