Repeated function calls using an abstract pattern in Javascript
· ☕ 1 min read
Use this if you want to repeatedly call a function for known arguments, or in case you just need a IIFE.
If you want a repeatedly called functions, you would typically -
Call function in a loop Use recursion For e.g. -
1 2 3 4 5 6 7 8 9 10 11 function printStr(str) { console.