function resetGame() {

        var disabledChars = availableCharsSelector.querySelectorAll(
            'li.hangman-available-character.disabled'),
            blankPlaceholders = answerPlaceholdersSelector.querySelectorAll(
                'li.guess')
        ;

        disabledChars.forEach(function(element) {
          element.className = 'hangman-available-character';
        });

        blankPlaceholders.forEach(function(element) {
          element.innerHTML = '_';
        });

        noticesSelector.innerHTML = '';

        canvasContext.clearRect(0, 0, canvasSelector.width,
            canvasSelector.height);

        guessedChars = [];

        misses = 0;
      }
/**
       * Resets the game so player can start over.
       */
Resets the game so player can start over.
Resets the game so player can start over .
function resetGame() {
        var disabledChars = availableCharsSelector.querySelectorAll(
            'li.hangman-available-character.disabled'),
            blankPlaceholders = answerPlaceholdersSelector.querySelectorAll(
                'li.guess')
        ;
        disabledChars.forEach(function(element) {
          element.className = 'hangman-available-character';
        });
        blankPlaceholders.forEach(function(element) {
          element.innerHTML = '_';
        });
        noticesSelector.innerHTML = '';
        canvasContext.clearRect(0, 0, canvasSelector.width,
            canvasSelector.height);
        guessedChars = [];
        misses = 0;
      }
function resetGame ( ) { var disabledChars = availableCharsSelector . querySelectorAll ( 'li.hangman-available-character.disabled' ) , blankPlaceholders = answerPlaceholdersSelector . querySelectorAll ( 'li.guess' ) ; disabledChars . forEach ( function ( element ) { element . className = 'hangman-available-character' ; } ) ; blankPlaceholders . forEach ( function ( element ) { element . innerHTML = '_' ; } ) ; noticesSelector . innerHTML = '' ; canvasContext . clearRect ( 0 , 0 , canvasSelector . width , canvasSelector . height ) ; guessedChars = [ ] ; misses = 0 ; }
Resets the game so player can start over.
Resets the game so player can start over .