Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!