mirror of https://github.com/boa-dev/boa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
144 B
11 lines
144 B
4 years ago
|
(function () {
|
||
4 years ago
|
let num = 12;
|
||
4 years ago
|
|
||
4 years ago
|
function fib(n) {
|
||
|
if (n <= 1) return 1;
|
||
|
return fib(n - 1) + fib(n - 2);
|
||
|
}
|
||
4 years ago
|
|
||
4 years ago
|
return fib(num);
|
||
4 years ago
|
})();
|