'' for character literals.
So you cannot do this:
"Osc" + 'ar' + "Reyes"
Since ar is not a character literal.
In your example, this is not a big deal because
'/'
is a char literal and
"/"
- A string literal containing only one character.
In addition, you can use any UTF character with the following syntax
'\u3c00'
So you can also use:
"Osc" + '\u3c00' + "ar
OscarRyz
source share