Manipulating Strings

Learn about the different types of operations that can be performed on strings.

Strings

As we learned earlier, a string is a sequence of characters, and a character does not have to be a letter—it can be punctuation marks, a space, a hyphen, or any other character we can produce using a computer. A string can also contain digits.

The first thing we must understand is that a string only containing digits won’t be the same as if it were an integer. Take a look at the following code:

Get hands-on with 1200+ tech skills courses.