<aside> 💡 When the first countdown finishes , start the 2nd countdown from 10 to 0 for the 2nd pose picture

</aside>

Notes

Code

  1. The DOM element wherein the countdown will be displayed
<h1 id='timerText'class="text-center my-5"></h1>
  1. Global variable assigned to the number 10 for the 1st countdown
let count2 = 10;
function countdown2(){
var timer2 = setInterval(function(){
 if(count2 < 0){
    clearInterval(timer2);
    document.getElementById('timerText').innerHTML = 'Next Pose';
   picture2()
    }
    else{
   document.getElementById('timerText').innerHTML = count2
   console.log(count2);
    count2--
    }
  },1000 )
}
  1. countdown2()