JSFiddle - React, Tailwind, and code Playground

by praveen_jegan

JavaScript

yourFunction();

 function yourFunction() {
     alert();
     setInterval(exeFunction, 2000);
 }

 function exeFunction() {
     alert("repeated action");
 }