I have a function called "showCustomer" that get number between 1-5 and return something.
I want to use setInterval, to run this function every 5 second but with another number.
Its not working, i don't understand why its not working to me. here is the code.
setInterval(function () {
    var i = 1;
    showCustomer(i);
    i++;
}, 5000);
 
     
     
    