mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
8 lines
160 B
JavaScript
8 lines
160 B
JavaScript
|
'use strict';
|
||
|
function fib(n) {
|
||
|
if (n === 0 || n === 1) return n;
|
||
|
return fib(n - 1) + fib(n - 2);
|
||
|
}
|
||
|
fib(parseInt(process.argv[2]) || 35);
|
||
|
process.exit(55);
|