With text strings you cannot perform mathematical operations. The most common operation performed with text strings is concatenation.Concatenation refers to the act of combining two text strings into one longer text string. For instance,the following combines the strings “ab” and “cd” into the combined string “abcd”:
“ab” + “cd”
As with numeric mathematical operations,there are two points to note about concatenation:
var myVariable = “ab” + “cd”;
var myVariable = “ab” + thisVar;
• When you are working with strings, keep in mind that the plus sign no longer has its mathematical meaning; instead, it indicates that concatenation should be performed.