To concatenate strings, we use the addition operator (
'abra' + 'cadabra'
The result is a single string made of the two input strings. We can concatenate any number of strings this way.
'a' + 'healthy' + 'dessert'
Notice how the output doesn't have any spaces? If we want spaces in our string, we have to add them ourselves.
To put a space in a string, just make sure there is a space character inside the quotation marks.
'a ' + 'healthy ' + 'dessert'
By including spaces in our original strings, we can have spaces in our result string. We can also add spaces by themselves.
'a' + ' ' + 'healthy' + ' ' + 'dessert'