function Fibor(n) { if (n == 1) { return 1; } if (n == 2) { return 1; } return Fibor(n - 1) + Fibor(n - 2); } console.log(Fibor(8));