-
Notifications
You must be signed in to change notification settings - Fork 2
JSL.loop()
joesimmons edited this page Sep 25, 2013
·
2 revisions
Syntax: JSL.loop( maxIterations, fn );
Parameters:
- maxIterations: [number] The number of times to call the function.
- fn: A function.
Example:
// declare a function
var myFunc = function () {
alert('Hello!');
};
// call 'myFunc' three times
JSL.loop(3, myFunc);