0
I try to re-define the for loop function for example
function loop(n,cb){
for(let i=0;i<n;i++) cb()
}
loop(4,function(){
console.log("Repeat")
})
But I don't want to use callback, Just something simple like this
loop(4){
console.log("Repeat")
}
How to simplify the loop function in ...