Text Usage
Operators will use their text variant if either of their operands are strings.
Join Strings
You can use the simple +
operator when you want to join two values together
You can join two strings without a space using the ++
operator
Remove From String
You can use the simple -
operator when you want to remove a value from another
Repeat A String
You can use the *
operator to repeat a string a set number of times
Nullish Coalescence
You can check if a value exists by using this operator.
Last updated