String Operators

Learn how to concatenate two strings using string operators in this lesson.

We'll cover the following

There are only two string operators:

  • Concatenation (.):
  • Concatenation Assignment (.=)


The most important operation in strings is concatenation. It means joining one string to another. For instance, the concatenation of water and bottle will result in a string water bottle.

Run the code below to see how this is done:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy