freeCodeCamp/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator/index.md
2018-10-16 21:32:40 +05:30

551 B

title
Concatenating Strings with Plus Operator

Concatenating Strings with Plus Operator

Concatenate means to link together. Think of the '+' operator like a chain linking strings together; add the strings just like you add numbers. Make sure your spelling is correct! Take note of spaces between words.

var str = "Good " + "job!" // It says "Good job!"
var abc = "Good" + "job!" // It says "Goodjob!"