13 lines
669 B
Markdown
13 lines
669 B
Markdown
|
---
|
|||
|
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!"
|
|||
|
|
|||
|
```
|