Back to Arithmetic
add
Add two values.
Syntax
add(a, b) → Sum of a and b, or concatenated string
Backends
TypeScript
Description
Returns the sum of two numbers or concatenates two strings.
Parameters
| Name | Description |
|---|---|
| a | Left operand |
| b | Right operand |
Returns
Sum of a and b, or concatenated string