String Concatenate and Interpolation

Using +:

To concatenate multiple strings, you can use the + to add the strings such as below:

const st = "Hi, My name is " + "Romil"
//this will show the value as "Hi, My name is Romil"

Using String Interpolation:

This lets us dynamically insert the values in the middle of a string using the ${}. Important to use the back ticks `` to interpolate. These are called template Literals

const age = 29
const name = Romil

const intro = `Hi my name is ${name} and I am ${age + 10} years old.
// This will show "Hi my name is Romil and I am 39 years old.

We can also use expressions, such as arithmetic expressions inside the interpolation as we did with the age variable.