course content

Course Content

Introduction to JavaScript

String ConcatenationString Concatenation

Let's consider some operations that you can perform with string type.

Concatenation

This operation glues two strings together. Perform by the + operator:

You can see that concatenation returns a new string (literal) where two words are stuck together.

Let's create a beautiful string by concatenation:

Concatenation with Assignment

The += operator can add text to the string type variable.

question-icon

What will be the output?

Select the correct answer

Section 3.

Chapter 9