JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<p>A new alert box will appear every 3 seconds.</p>
<p>This will go on forever, until you close the window.</p>
</body>
JavaScript
setInterval(function(){alert('Hello')},1000)
var timeOut = function() {
alert('Hello');
};
var main = function() {
setInterval(timeOut, 3000);
};
$(document).ready(main);