function addGuessListener() {

        document.onkeydown = function(event) {
          validateCurrentGuess(event.key.toUpperCase());
        };

        availableCharsSelector.addEventListener('click', function(event) {
          if (event.target.matches('li')) {
            validateCurrentGuess(event.target.textContent);
          }
        });

      }
/**
       * Retrieves the current guess and passes it to the validateCurrentGuess()
       * function.
       */
Retrieves the current guess and passes it to the validateCurrentGuess()
function.
Retrieves the current guess and passes it to the validateCurrentGuess () function .
function addGuessListener() {
        document.onkeydown = function(event) {
          validateCurrentGuess(event.key.toUpperCase());
        };
        availableCharsSelector.addEventListener('click', function(event) {
          if (event.target.matches('li')) {
            validateCurrentGuess(event.target.textContent);
          }
        });
      }
function addGuessListener ( ) { document . onkeydown = function ( event ) { validateCurrentGuess ( event . key . toUpperCase ( ) ) ; } ; availableCharsSelector . addEventListener ( 'click' , function ( event ) { if ( event . target . matches ( 'li' ) ) { validateCurrentGuess ( event . target . textContent ) ; } } ) ; }
Retrieves the current guess and passes it to the validateCurrentGuess()
 function.
Retrieves the current guess and passes it to the validateCurrentGuess () function .