What is the purpose of the setTimeout function in JavaScript?
setTimeout
It executes a function repeatedly at specified intervals.
It schedules a function to be executed on the next event loop cycle.
It delays the execution of a function by a specified number of milliseconds.
It sets a timeout for an asynchronous task to complete.