text: const daysEl = document.getElementById('days');
  const hoursEl = document.getElementById('hours');
  const minsEl = document.getElementById('mins');
  const secondsEl = document.getElementById('seconds');
  
  const newYear = '16 June 2022';
  
  function countdown(){
      const newYearsDate = new Date(newYear);
      const currentDate = new Date();
  
      const totalSeconds = (newYearsDate - currentDate) / 1000;
      const days = Math.floor(totalSeconds/ 3600 / 24);
      const hours = Math.floor(totalSeconds / 3600) % 24;
      const mins = Math.floor(totalSeconds / 60) % 60;
      const seconds = Math.floor(totalSeconds) % 60;
  
      daysEl.innerHTML = formatTime(days);
      hoursEl.innerHTML = formatTime(hours);
      minsEl.innerHTML = formatTime(mins);
      secondsEl.innerHTML = formatTime(seconds);
  
      console.log(days, hours, mins, seconds);
  }
  
  function formatTime(time){
      return time < 10 ? (`0${time}`) : time;
  }
  
  setInterval(countdown, 1000);
  