/

HTML / CSS / JavaScript Tutorial

JavaScript String method: concat()

[this page | pdf | back links]

The concat() method (when applied to a JavaScript string) returns the result of joining two or more strings together.

 

It has the following syntax with the following parameters:

 

string.concat(string1, string2, …)

 

Parameter

Required / Optional

Description

string1, string2, …

Required

Strings to be concatenated (joined) together

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript String Variables


Desktop view | Switch to Mobile