Essential JSDoc tags for documenting your code
@description {string} Description text/**
* @description Calculates the sum of two numbers
* @param {number} a - First number
* @param {number} b - Second number
* @returns {number} The sum
*/
function add(a, b) {
return a + b;
}@author {string} Author name <email>/**
* @author John Doe <john@example.com>
* @author Jane Smith <jane@example.com>
*/@version {string} Version number/**
* @version 1.2.0
* @since 1.0.0
*/@since {string} Version when added/**
* @since 1.0.0
* @description Added in the initial release
*/@deprecated {string} Deprecation message/**
* @deprecated Since version 2.0.0. Use newFunction() instead.
* @see {@link newFunction}
*/
function oldFunction() {
// deprecated implementation
}