A callback is a function passed as an argument to another function .
This technique allows a function to call another function.
A callback function can run after another function has finished .
TimeOut
Executes a function, after waiting a specified number of milliseconds.
This technique allows a function to call another function.
A callback function can run after another function has finished .
syntax :
window. setTimeout (function, milliseconds);
Interval
Same as setTimeout(), but repeats the execution of the function continuously.