Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 417 Bytes

Concatenating Strings with Plus Operator

In JavaScript, when the + operator is used with a String value, it is called the concatenation operator. You can build a new string out of other strings by concatenating them together.

Example

'My name is Alan,' + ' I concatenate.'

Note

Watch out for spaces. Concatenation does not add spaces between concatenated strings, so you'll need to add them yourself.

Something went wrong with that request. Please try again.