I have a variable of unknown value, it will be an integer. For this sake, lets say var a = 3;
var a = 3;
I have a function that is called continuously:
<
Create a second variable which keeps hold of the current count, then wrap the call you only want every third iteration with
if(counter % a == 0) { //code you want called }