daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.  
  3.     function factorial(n) {
  4.         if (n <= 1) {
  5.             return 1;
  6.         }
  7.         return factorial(n - 1) * n
  8.     }
  9.  
  10.     console.log(factorial(6))
  11.  
  12. })()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top