Differences between javaScript setTimeout and setInterval

The important difference is that, whereas setTimeout() triggers expression only once after the timeout , setInterval() keeps triggering expression again and again in intervals (unless you tell it to stop).