This operation joins array elements with a string followed by operation character.
fruits = ['Mango', 'Banana', 'Annona', 'Grape'];
To join array elements with comma we can use the following expression:
is an operation special character and the comma
Now let's join array elements with ***
( 3 stars ).
The star character is reserved for
Mandatory value operation
, therefore we
need to escape each star:
Additionally you can use a \n
characters for array items
For example you can join array elements with LF character:
You can also join array elements with a delimiter provided as expression: