function addResetListener() {
        noticesSelector.addEventListener('click', function(event) {
          if (event.target.matches('button#hangman-reset-game')) {
            resetGame();
          }
        });
      }
/**
       * Resets the game when the appropriate button is clicked.
       */
Resets the game when the appropriate button is clicked.
Resets the game when the appropriate button is clicked .
function addResetListener() {
        noticesSelector.addEventListener('click', function(event) {
          if (event.target.matches('button#hangman-reset-game')) {
            resetGame();
          }
        });
      }
function addResetListener ( ) { noticesSelector . addEventListener ( 'click' , function ( event ) { if ( event . target . matches ( 'button#hangman-reset-game' ) ) { resetGame ( ) ; } } ) ; }
Resets the game when the appropriate button is clicked.
Resets the game when the appropriate button is clicked .