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
http://jsfiddle.net/utbsgnzu/4/
function operation() {
console.log("testing");
}
function repeat(operation, num) {
for (var i = 0; i < num; i++) {
operation();
}
}
//repeat(operation, 10);
module.exports = repeat