.concat()

Concatenates or combines strings together.

Syntax

Loading...

Example 1

Concatenating a string:

Loading...

Example 2

Concatenating strings with the usage of variables:

Loading...
Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn JavaScript on Codecademy