javascript-today

String Operators

Common string operators:

+ string concatenation

combines the string on the left with the string on the right to produce a new string.

example:

  let txt1 = "some";
  let txt2 = "thing"
  console.log(txt1 + txt2);

output: something

Next Article: String Methods