Addition (+)
Last updated
Was this helpful?
Last updated
Was this helpful?
Airkit supports the standard addition operator +
. It is used to add as well as combine .
The following example shows how the addition operator is used to combine the Numbers 2 and 3 together. Note that it returns a another Number: 5, the sum 2 and 3:
The following example shows how the addition operator is used to combine the strings "abc" and "def". Note that it returns another string: "abc" and "def" concatenated together:
When adding strings together, the addition operator behaves analogously to the function.