src/js/revealing-modal.js
/**
   * Attach the event listeners to the close buttons
   *
   * @param {array} close buttons - the array of buttons
   */
Attach the event listeners to the close buttons
@param {array} close buttons - the array of buttons
Attach the event listeners to the close buttons @param { array } close buttons - the array of buttons
function _addCloseEventListeners(buttons) {
    buttons.forEach((el, i) => {
      el.addEventListener('click', (e) => {
        const modal = el.parentNode
        closeModal(modal);
      });
    });
  }
function _addCloseEventListeners ( buttons ) { buttons . forEach ( ( el , i ) => { el . addEventListener ( 'click' , ( e ) => { const modal = el . parentNode closeModal ( modal ) ; } ) ; } ) ; }
Attach the event listeners to the close buttons
 @param {array} close buttons - the array of buttons
Attach the event listeners to the close buttons @param { array } close buttons - the array of buttons