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

277
Views
how to call method in static method in javascript

how to call non static method into static method

i written this class and when run this class

class Test{

    constructor(p){

        this.fname = p;
    }

    change(n){
        this.fname = n + ' test';
    }

    static show(){
        this.change('iman');
        return  this.fname;
    }

    echo(){    
        return this.fname+' ok';
    }
}

console.log(Test.show());

return below error

TypeError: this.change is not a function
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!