Now that you can make all kinds of variables with different data types, it will be helpful for you to understand how to manipulate your data as well.
What happens when you need to add two number type variables together? Or what if you need to find out whether a specific word appears in a string? The following sections look at a bunch of these types of functions.
Manipulating numbers is nothing more than doing math. It’s either addition, subtraction, multiplication, or division. Let’s look at the operations and their operators.
Let’s declare some variables and perform some mathematical operations and see what we get. We’ll use some of our cool short cuts for declaring and initializing variables.