orca/ext/wasm3/test/lang/fib.min.js

4 lines
80 B
JavaScript
Executable File

function fib(f){if(f<2)return f
return fib(f-1)+fib(f-2)}
console.log(fib(32));