• Update interval in JavaScript with window.setInterval(function(){/* put something here! */}, 1000);.
  • The last parameter goes in milliseconds (1000 ms is 1 second.)