An operators acts on one or more operands when comparing, assigning, concatenating, calculating, and performing logical operations.
Say, you want to calculate the difference between two variables A and B and save the result in variable C. These variables are the operands and to find the difference you use the subtraction operator like this:
C = A - B
Here I used the assignment operator ( = ) to assign the difference between A and B, which was found by using the subtraction operator ( - ).
Operators are one of the single-most important parts of any programming language. Without them, you would not be able to assign values to variables or perform calculations and comparisons! It would be a bit like a bicycle without pedals ...
Types of Operators
Operator Precedence