JSFiddle - React, Tailwind, and code Playground

by Jessie Lau

JavaScript

function fab(n){
	if(n=== 0 || n===1){return n;}
    return fab(n-1) + fab(n-2);
}
console.log(fab(4));