+

Prev Next Home Home Table Of Contents Index

+ : Operator

Adds two numbers or two strings.


Example:
"Hello" + " " + "World" ;returns "Hello World" 2 + 2 ;returns 4

The plus operator can also used to concatinate arrays or concatinate values to arrays.


Example:
X[1] = 1 X[2] = 2

Y[1] = 3 Y[2] = 4

Z = X + Y ;returns an array containing [1,2,3,4] Z = X + "A" ;returns an array containing [1,2,'A'] Z = "A" + X ;returns an array containing ['A',1,2]

Category: Math String Float Array

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home