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