ts-library-template

Home > ts-library-template > sum

sum() function

Calculate the sum of two numbers

Signature:

export declare function sum(a: number, b: number): number;

Parameters

Parameter Type Description
a number first number
b number second number

Returns:

number