passing number to function for loop with jquery
===

another noob question here, I've scoured the site but couldn't find a clear answer. I was wondering how to pass a number to a function I created for a loop. For example I have loop that simply adds +1 to a value when it runs. How would I go about passing how many times I want the loop to run in a function? Like so:

    var i = 0;
    function blahBlah (i ?){
    for (i=0,i>10(this is what I want to pass to the function),i++){
    i++;
    }

    then call the function:
    
    blahBlah(number of times I want it to run);

I hope that makes sense. I've done a similar thing to this in ActionScript but I was wondering how to do it in JS/JQuery.  I could be looking at it entirely the wrong way, but in any case please enlighten me!!

Thanks!


