add
mathAdds two numbers.
Signature
add(augend: number, addend: number): numberParameters
| Name | Type | Description |
|---|---|---|
augend | number | The first number in an addition |
addend | number | The second number in an addition |
Returns
number - Returns the total
Examples
Basic usage
import { add } from 'dashlite'
const result = add(6, 4)
console.log(result)Output:
10Negative numbers
import { add } from 'dashlite'
const result = add(-5, 3)
console.log(result)Output:
-2Available since version 1.0.0