Bonfire Sum All Odd Fibonaci Numbers

function sumFibs(num) { if (num === 1 || num === 0) {return 1;} else {return sumFibs(num - 2) + sumFibs(num - 1);} } sumFibs(4);

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.