Math Function of JavaScript

  1. Math.random()

This function returns a random floating point number between 0 and 1 ,but not 1.This function generate number which you can’t imagine . It will not generate a whole number.


This method take two arguments as a input and it will return the value of the first argument raised to the power of the second argument

3.Math .round()

this function will return rounded to the value of nearest integer .


This method will return round a number to next largest integer .


This method returns the largest integer that is less than or equal to the arguments.


This method will return the smallest value among the arguments .


This method will return the largest value of among the arguments.


This Method will return the absolute or exact value of number .


This method returns the integer part of arguments and remove the fractional part .


This method return the square root of arguments.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store