nodejs add string to string code example
Example 1: javascript string concat vs +
It is strongly recommended to use the string
concatenationoperators (+, +=) instead of String.concat
method for perfomance reasons
Example 2: append string js
var s = "1"
s += "2"
Example 3: javascript add to string
var s = 'hell'
s = s + 'o'
Example 4: string concat in js
let string1 = "Hello"
let string2 = "World"
let finalString = string1 + ", " + string2 + "!" // Hello, World!