MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at type-hints-typescript 11 lines 262 B view raw
1function fib(n) { 2 if (n < 2) return n; 3 return fib(n - 1) + fib(n - 2); 4} 5 6const start = performance.now(); 7const result = fib(35); 8const end = performance.now(); 9 10console.log(`fibonacci(35) = ${result}`); 11console.log(`Time: ${(end - start).toFixed(2)} ms`);