concat()
ES3+Concatenates the string arguments to the calling string.
Syntax
string.concat(str1, str2, ...)Parameters
strings string Strings to concatenate
Return Value
string
A new string containing the combined text
Examples
JavaScript
const str = 'Hello';
console.log(str.concat(' ', 'World')); Output:
// 'Hello World'