how to append string to string in javascript code example Example: append string js var s = "1" s += "2"