Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

266
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda