JAVA SCRIPT
June 3, 2026 1 min read

JavaScript Interval and Timeout Functions: setInterval() and setTimeout()

HS
HEMANT SINGH
Technical Writer & Educator

Interval in javascript

setInterval()

This function execute a function in given interval.

 

clearInterval()

This function remove the object of setInterval()

 

setTimeout()

This function execute a function after the time lapse.

 

clearTimeout()

This function remove the object of setTimeout()