Section 24.164. String.concat( ): concatenate strings


24.164. String.concat( ): concatenate strings

ECMAScript v3

24.164.1. Synopsis

string.concat(value, ...)

24.164.1.1. Arguments

value, ...

One or more values to be concatenated to string.

24.164.1.2. Returns

A new string that results from concatenating each of the arguments to string.

24.164.2. Description

concat( ) converts each of its arguments to a string (if necessary) and appends them, in order, to the end of string. It returns the resulting concatenation. Note that string itself is not modified.

String.concat( ) is an analog to Array.concat( ). Note that it is often easier to use the + operator to perform string concatenation.

24.164.3. See Also

 Array.concat( ) 




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net