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

13 lines
669 B
Markdown
Raw Normal View History

2018-10-12 20:00:59 +00:00
---
title: Concatenating Strings with the Plus Equals Operator
localeTitle: Объединение строк с помощью оператора Plus Equals
---
## Объединение строк с помощью оператора Plus Equals
Оператор «+ =» может легко конкатенировать (ссылку) строки. Убедитесь, что ваше правописание правильное, и вы оставили соответствующие пробелы.
```
var str = "Hello ";
str += "coding"; // Now the string reads "Hello coding"
str += "camper!"; // And now the string reads "Hello codingcamper!"
```