I created a global variable var time = 3000;. In a separate function, I changed this variable: time = time - 1000; I then added the variable as the time for an interval
loading = setInterval(function(){...}, time); This interval is always active. Although I changed the value of time in another function, it didn't update in the interval. Could someone help me out?