TypeScript Add
function add(param1: number, param2: number): number {
return param1 + param2;
}
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.
function add(param1: number, param2: number): number {
return param1 + param2;
}
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.