Documenting Javascript with JSDocs (Crash Course)
The document is a crash course on using JSDocs to document JavaScript code. It covers installation via npm, basic usage of JSDocs comments, and more
Crash Course on JSDoc and Using It with Svelte 5
Installing JSDoc
npm install -g jsdocBasic JSDoc Syntax
/**
* Adds two numbers
* @param {number} a - The first number
* @param {number} b - The second number
* @returns {number} The sum of a and b
*/
function add(a, b) {
return a + b;
}Common JSDoc Tags
Using JSDoc with Svelte 5
Documenting Props
Documenting State
Documenting Derived Values
Documenting Effects
Showing Samples with JSDoc
For Component Documentation
For Function Documentation
For Prop Documentation
For State Documentation
For Derived Values
Last updated