Math object. The
Math. and then you have access to some variables, such as the value of pi, and some methods, such as the ability to raise one number to the power of a second number. Here's an example of finding the circumference of a circle using the value of pi from the
// The circumference of a circle is 2 * π * r const circumference = 2 * Math.PI * 4;
There are a lot of ways that you can use the
Math object. Click here to visit the reference page and see all the things you can do with it.