Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

267
Visualizações
What is a possible cause for the 'is not a function' error in this case?

I'm a beginner developer and working on a simple word game. I created a class that produces single-round objects for each given word and one of the private methods in it results in an error.

I looked through all the possible reasons for that error on MDN and none of them were applicable (as to me).

This is the method:

 _deactivateChallengeBtn () {
  this._element.classList.add('challenge-button__complete');
  this._element.querySelector('.challenge-button-word').innerHTML = this.word;
  this._element.querySelector('.challenge-button-score').innerHTML = this.score;
 }

And this is a method from the same class, that calls the latter:

 _endGame () {
  deactivateKeyboard ();
  resetGivenWord ();
  resetUserWordList ();
  this._deactivateChallengeBtn ();  
  toggleScreens ();
}

What am I missing here?!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda