<aside> 💡 The button that actually starts the countdown to take a pic

</aside>

<button class='btn btn-md btn-block' id='snap'>Start</button>
snap.addEventListener("click", function() {
countdown1();
});

Notes

  1. Purpose: To attach a click event to the "start" button
  2. The DOM addEventListener() will attach an event handler to an HTML element
  3. This method is attached to the <button> with id snap
  4. Use the DOM addEventListener() method which takes a click event and callback function as arguments
  5. The callback function will call a function called countdown1(). This corresponds to the first countdown from 10 to 0 which will take the 1st pic