JavaScript Timing Events

JavaScript can be executed in time-intervals with the help of setTimeout() and setInterval(). These time intervals are called timing events.

Code :