daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 59 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
Top