How do I calculate logarithm?

We can calculate logarithm using the Math.log10() and the Math.log() static method call.

The output of the program is: