The more widely known and used method call is the same one we used in our indexOf example.
In this method call, the object we are calling the method on, and the method name are separated by . while the arguments to the method are passed in ().
Method Call Using Operator Notation
You can also call a method like you would use an operator such as +. The method in this would be acting as an operator.
Let’s modify the indexOf example in such a way that it uses the operator notation.