Guest User

Untitled

a guest
Feb 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const fib = n => n < 1 ? 0
  2. : n <= 2 ? 1
  3. : fib (n - 1) + fib (n - 2);
  4.  
  5. const fact = n => n < 2 ? 1 : n * fact (n - 1);
Add Comment
Please, Sign In to add comment