- JavaScript Math object provides many useful methods and properties to use.
- This object can be found in Window.Math .
- In this Demo,”We will run and test these methods and properties in console and see the output“.
- Check the below screenshot showing methods max(), min(), log(), random(), floor(), ceil() and abs().
- Check the below screenshot showing methods sin(), cos(), tan(), round(), pow() and sqrt().
- Check the below screenshot showing methods asin(), acos(), atan(), atan2() and exp().
- Check the below screenshot showing properties E, LOG2E, LOG10E , LN2, LN10, PI, SQRT2,SQRT1_2.