Advertisement
bolo17

Untitled

Apr 5th, 2022
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Concatenating Strings with Plus Operator
  4. 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.
  5.  
  6. Example
  7.  
  8. 'My name is Alan,' + ' I concatenate.'
  9. Note: Watch out for spaces. Concatenation does not add spaces between concatenated strings, so you'll need to add them yourself.
  10.  
  11. Example:
  12.  
  13. const ourStr = "I come first. " + "I come second.";
  14. for more: https://www.clictune.com/eFqS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement