08-jsdochover×7 queryall
// JSDoc on a symbol renders as documentation inside its hover popup.
/**
 * Adds two numbers together.
 * @param a the first addend
 * @param b the second addend
 * @returns their sum
 */
function 
function add(a: number, b: number): number

Adds two numbers together.

@parama the first addend@paramb the second addend@returnstheir sum
add
(
(parameter) a: number

the first addend

@parama the first addend
a
: number,
(parameter) b: number

the second addend

@paramb the second addend
b
: number) {
return
(parameter) a: number

the first addend

@parama the first addend
a
+
(parameter) b: number

the second addend

@paramb the second addend
b
} const total =
function add(a: number, b: number): number

Adds two numbers together.

@parama the first addend@paramb the second addend@returnstheir sum
add
(1, 2)
const total: number