To execute any function repeatedly with fixed time delay for that we have a one
function with two parameters called setInterval(functionname, timedelay).

In
this function we need to call the required function in functionname
field and we need to set the required time delay to execute the function in timedelay
field. If you want to see it in example you need to write the code like as
shown below