Window setInterval() Method

setinterval

Alert “GEMCODE” every 5 seconds (5000 milliseconds):