📅  最后修改于: 2022-03-11 15:03:22.649000             🧑  作者: Mango
function fibo(i) {
if (i == 0) {
return 0;
}
if (i == 1) {
return 1;
}
return fibo(i - 1) + fibo(i - 2);
}
console.log(fibo(6));
//Output: 8