title: javascript recursive with parameters to decrement
body: <p>hello I'm new learning recursive but i don't know to solve with this problem,
  cause this one using 2 parameters, I don't know how to return with 2 arguments.</p>
  
  <p>this is the normal loop ,<code>not a recursive</code> yet cause i dunno how to change it to <code>recursive</code>:</p>
  
  <pre><code>function deret2(num,num2){
    var tampung = 1;
     for (var i= num; i &gt;= 1 ; i-= num2){
  
      tampung = tampung * i ;
    }
    console.log(tampung);
  }
  deret2(12,5); //12* 7 * 2 = 168
  </code></pre>
  
  <p>Edit : the recursive I made :</p>
  
  <pre><code>function deret(num,num2) {
    //var tampung = 1;
    if (num &lt;= 0) { // terminal case
      return 1;
    } else 
    { // block to execute
      return num * deret(num-num2,num2); 
    }
  };
  deret(12,5);
  </code></pre>
  
  <p>it won't work cause <code>number* deret(2 arguments here)</code> ?? that's why i don't know how to make this a recursive with 2 parameters, how could u save it and multiply it against 2 arguments ?</p>