|
|
|
String Operators.
In addition to the comparison operators, which can be used on string values, the concatenation operator(+) adds two string values together, returning another string. For example,
"my " + "string"
returns the string " my string".
The shorthand assignment operator += can also be used to concatenate strings. For example, if the variable mystring has the value "alpha", then the expression mystring +=bet "bet" evaluates to "alphabet" and assigns this value to mystring.
TOP
|
|