Basic JavaScript (26/111) | Concatenating Strings with Plus Operator

Published: 30 July 2020
on channel: Stral Tech
541
3

Basic JavaScript (26/111) | Concatenating Strings with Plus Operator

Full playlist 👉    • Basic JavaScript (1/111) | Comment Yo...  

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:
var ourStr = "I come first. " + "I come second.";
// ourStr is "I come first. I come second."
Build myStr from the strings "This is the start. " and "This is the end." using the + operator.


Watch video Basic JavaScript (26/111) | Concatenating Strings with Plus Operator online, duration hours minute second in high quality that is uploaded to the channel Stral Tech 30 July 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 541 times and liked it 3 visitors.