how to merge all strings into one string in javascript code example
Example 1: javascript join address to string
var address = "foo";
var city;
var state = "bar";
var zip;
text = [address, city, state, zip].filter(Boolean).join(", ");
console.log(text)
Example 2: string concatenation js
var aString="";
aString.concat(value1, value2, ... value_n);