mostly-adequate-guide/functional.js
// No checks on n > 0, or type of n
No checks on n > 0, or type of n
No checks on n > 0 or type of n
function fibonacci(n) {
  if (n === 1 || n === 2) {
    return 1;
  }
  return fibonacci(n-1) + fibonacci(n-2)
}
function fibonacci ( n ) { if ( n === 1 || n === 2 ) { return 1 ; } return fibonacci ( n - 1 ) + fibonacci ( n - 2 ) }
No checks on n > 0, or type of n
No checks on n > 0 or type of n