title: replace for loop with recursive function for
body: <p>i am working on simple js function... 
  can u tell me how to replace the loop with recursive function..
  providing my code below in the fiddle..
  I am trying to learn js </p>
  
  <p><a href="http://jsfiddle.net/utbsgnzu/4/" rel="nofollow">http://jsfiddle.net/utbsgnzu/4/</a></p>
  
  <pre><code>function operation() {
      console.log("testing");
  }
  
  function repeat(operation, num) {
      for (var i = 0; i &lt; num; i++) {
          operation();
      }
  }
  
  //repeat(operation, 10);
  module.exports = repeat
  </code></pre>