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

171
Views
How can I set IDE to highlight code lines where I should write 'super' and 'await' on JS?

The thing is I sometimes forget to write the keywords and VS Code and TypeScript are not willing to notify me that I cannot call an inherited method in class without 'super' and in some cases I should use 'await' with asynchronous function. Please, help me reduce the amount of the errors with your advice.

An example with 'super':

class Child{
    printHey(){console.log('Hey')}
}

class Parent extends Child{
    printHey(){
        this.printHey() // the super required
    }
}

new Parent().printHey()

An example with 'await':

class Echo {
    async getEcho(echo: any){
        return echo
    }

    async printEcho(){
        var echo = 'Hey'
        var message:any = this.getEcho(echo)
        while(message !== echo) 'pass' // The loop got stuck
        console.log(`Echo ${message}`)
    }
}

new Echo().printEcho()
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!