freeCodeCamp/guide/english/certifications/javascript-algorithms-and-d.../basic-javascript/concatenating-strings-with-.../index.md

11 lines
551 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Concatenating Strings with Plus Operator
---
## Concatenating Strings with Plus Operator
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
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!"