We can easily append variables to a string using the plus equals (+=) operator.
The console will show the output:
Top comments (3)
Here I have created two variables that holds two different strings and inside the console.log() I've concatenate those two. So that's why I said appending variables.