JSFiddle - React, Tailwind, and code Playground

by qustosh

JavaScript

//timers
    
    var count = 1;
    var sec = 0;
    setInterval(function(){
     if(count == 60){
       count = 1;
       sec += 1;    
       console.log("hey there");
     }          
     count += 1;            
    
    },1000/60)