Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Algorithms and Data Structures
- Basic JavaScript
- Concatenating Strings with Plus Operator
- In JavaScript, when the + operator is used with a String value, it is called the concatenation operator. You can build a new string out of other strings by concatenating them together.
- Example
- 'My name is Alan,' + ' I concatenate.'
- Note: Watch out for spaces. Concatenation does not add spaces between concatenated strings, so you'll need to add them yourself.
- Example:
- const ourStr = "I come first. " + "I come second.";
- for more: https://www.clictune.com/eFqS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement