What will be the fastest and most appropriate way to concat or merge two strings. By using the '+' operator :
var str1 = "Hello ";
var str2 = "world!";
var res = str1 + str2;
// output : "Hello world!"
Or using the string concat :
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
// output : "Hello world!"
The perspective is if the code has to be fast and optimized and production quality.And the above method will be used for constructing links,href and custom statements.. etc. Is there any other method to do so effeciently.