Skip to content

Instantly share code, notes, and snippets.

@fastmover
Created January 25, 2013 23:25
Show Gist options
  • Save fastmover/4638840 to your computer and use it in GitHub Desktop.
Save fastmover/4638840 to your computer and use it in GitHub Desktop.
Fibonacci Numbers (first 100)
fn = function() {
x = 0
y = 1
prev = 1;
for(z = 0; z < 100; z++)
{
prev = x;
x = y;
y = prev + x;
console.log(y);
}
};
fn();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment