...

/

Operators are Methods

Operators are Methods

Operators are methods too.

As briefly mentioned earlier, a number has methods named like the arithmetic operators, +, -, *, and /.

It’s intuitive when considering that if everything is an object, then numbers are objects too. If doing things means operating with methods by way of calling ...