Skip to content

Instantly share code, notes, and snippets.

@0rbianta
Created January 14, 2021 06:50
Show Gist options
  • Save 0rbianta/41b00e4086c2fccd341bf04997c6f77f to your computer and use it in GitHub Desktop.
Save 0rbianta/41b00e4086c2fccd341bf04997c6f77f to your computer and use it in GitHub Desktop.
Fibonacci Numbers NodeJS
build = 1; //start number=1
rax = 0; //last used number
for(var i = 0;i<5;i++){
tmp=build;
build+=rax;
rax=tmp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment