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

Опубликовано: 30 Июль 2020
на канале: 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.


Смотрите видео Basic JavaScript (26/111) | Concatenating Strings with Plus Operator онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Stral Tech 30 Июль 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 541 раз и оно понравилось 3 посетителям.