2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Concatenating Strings with the Plus Equals Operator
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Concatenating Strings with the Plus Equals Operator
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
|
|
|
### Hint 1
|
2018-10-12 15:37:13 -04:00
|
|
|
The '+=' operator can concatenate (link) strings easily. Make sure your spelling is right, and you've left appropriate spaces.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```javascript
|
|
|
|
var str = "Hello ";
|
|
|
|
str += "coding"; // Now the string reads "Hello coding"
|
|
|
|
str += "camper!"; // And now the string reads "Hello codingcamper!"
|
|
|
|
```
|