Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Nth Fibonacci Number
//Title of this code //V8 3.31.1 function fib(n) { arr = []; arr[0]=0; arr[1]=1; if (n>2) { for (i=2; i<=n; i++) { arr[i]=arr[i-1]+arr[i-2]; } } print(arr[n]); } fib(12);
run
|
edit
|
history
|
help
0
array objects to a single object
ROSHAMBO BITCHES!
ComposeWordsGrid
LearningJavaScript
fb_series
Loops
rstring
10 bottles of juice
JS exam part 2 - BPM
My first app