I'm trying to use multiple variables in a function. This one works for 2 variables, but what if there are 5 sites to get scripts from?
function scripts(url,url2){
window.setInterval(function (){
$.getScript(url);
$.getScript(url2);
},10000)
}
scripts('http://www.site1.com/1.jpg','http://www.site2.com/1.jpg');
What is the correct way to use multiple variables in a function, when we can use as more variables as we can?