Hi,
Yes, there's more than one way to skin the cat -
I use '&' for concatenation in basic and never use '+'.
It's enough of a habit that I had forgotten that '+' also works (usually) as given in the Cypress manual page 39:
'+' or '&' can be used for string concatenation
I scratched my head and eventualy remembered why I got into that habit; '+' as it is also an arithmetic operator.
By using '&' instead of '+', I don't have to worry about cypress attempting to add two numbers together... The '+', '-' and '&' operators all are shown with the same operator precedence (page 40).
Rather than test and determine cypress's actions for odd corner cases, I found it simpler to avoid the issue -
From page 8:
"If a string and a number are concatenated the result is a string. To be sure your concatenation works regardless of the data type involved use the & operator. The & will not perform arithmetic on your numeric values it will simply concatenate them as if they were strings."
Dave