This operation adds a new element to the end of array.
Let's say we have the following JavaScript array:
fruits = ['Mango', 'Banana', 'Annona', 'Grape'];
The following expression adds an
'Orange' string to the the of the array:
${fruits+Orange}
The
'Orange' value followed by the
+ operation is treated as string
as was told in
introduction section.
Adding multiple items to the array by chaining them:
${fruits+Orange+Cherry+Durian}
You can also add array item dynamically by using nested expression:
${fruits+${myDynamicValue}}
The
myDynamicValue can be declared as a JavaScript variable or can be
provided externally as
argument.