6 lines
71 B
Text
6 lines
71 B
Text
function fib(n) {
|
|
return(n<2 ? n : fib(n-1)+fib(n-2))
|
|
}
|
|
|
|
fib(10)
|
|
55
|