Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

concat

Summary

Returns value of joined strings without altering original string.

One of multiple ways to do this. Other ways include the addition operator ( + ) and the assignment operator ( += ).

Syntax

"string".concat

Parameters

string1, string2, stringN, etc…

Example

var firstName="Patrick ";
var lastName="Wilson";
var describeThem=" is great";

var actorDescript = firstName.concat(lastName,describeThem);