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

118
Views
Proper jsdoc on a class

Is the following a correct usage of JSDoc on a class? The code is trivial but I'm more interested in if this is an idiomatic usage of it or I'm missing somethings:

class Person {

    /**
     * Create a Person
     * @param {string} name
     * 
     */
    constructor(name) {
        this.name = name;
    }

    /**
     * Print a salutation for that person
     * @returns {number} The number 1 if successfully invoked
     */
    say_hello() {
        console.log(`Hello ${this.name}`);
        return 1;
    }

}

Additionally, I'm using VSCode, are there extensions that help with creating this boilerplate?

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!