/* 
Sign up for YaadCode - Live FreeCode Coamp Coding Sessions Twice Weekly on Skype
You may join the FreeCodeCamp, Kingston Group here: https://www.facebook.com/groups/free.code.camp.kingston.jamaica/ 
https://www.freecodecamp.org/challenges/factorialize-a-number
*/

function factorialize(num) {
  if (num ==1 ){
    return 1;
  }
  if (num ==0) {
    return 1;
  }
  return num * factorialize(num-1);
}
factorialize(5);  //Expected Output: 120