difference between setTimeout() and setInterval()

JavaScript
.setTimeout() //executes the code after x seconds.
.setInterval() //executes the code **every** x seconds.
Source

Also in JavaScript: