String concat() method

Find all information about the JavaScript concat() method of a string

Concatenate the current string with the string passed as a parameter.


'Flavio'.concat(' ').concat('Copes') //'Flavio Copes'

You can specify a variable number of parameters, and if you do, all these parameters will be connected to the original string:

'Flavio'.concat(' ', 'Copes') //'Flavio Copes'

Download mine for freeJavaScript beginner's manual

More js tutorials: