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

669 B
Raw Blame History

title localeTitle
Concatenating Strings with the Plus Equals Operator Объединение строк с помощью оператора Plus Equals

Объединение строк с помощью оператора Plus Equals

Оператор «+ =» может легко конкатенировать (ссылку) строки. Убедитесь, что ваше правописание правильное, и вы оставили соответствующие пробелы.

var str = "Hello "; 
 str += "coding"; // Now the string reads "Hello coding" 
 str += "camper!"; // And now the string reads "Hello codingcamper!"