Math.max(x,y)
The Math.max(x,y) method can be used to find the highest value of x and y.
for ex:
Math.max(2,6);
Math.min(x,y)
The Math.min(x,y) method can be used to find the highest value of x and y.
for ex:
Math.min(2,6);
Math.sqrt(x)
The Math.sqrt(x) method can be used to find the square root of value x.
Math.sqrt(4);
Math.abs(x)
The Math.abs(x) method can be used to find the absolute(positive) value of x.
for ex:
Math.abs(-4,2);
Math.random()
The Math.random() method can be used to find number between 0.0(inclusive), and 1.0(exclusive).
Math.random();