38) What is the use of Math object in JavaScript?

The JavaScript math object provides several constants and methods to perform a mathematical operation. Unlike date object, it doesn’t have constructors. For example:

function display()
{
document.writeln(Math.random());
}
display();

Leave a Reply