JavaScript program to Demonstrate methods of math object

Write a JavaScript program to demonstrate methods of "math" object.



Source Code
<html>
<head>
    <TITLE>Math Object</TITLE>
</head>
<body>
<script type="text/JavaScript">
    document.write("Value of PI : "+ Math.PI + "<BR>");
    document.write("Random value : "+ Math.random() + "<BR>");
    document.write("Rounded value of 0.69 : " + Math.round(0.69) + "<br>");
    document.write("Value of 5 <SUP>2</SUP> : " + Math.pow(5,2) + "<br>");
    document.write("Square root of 2 : " + Math.SQRT2 );
</script>
</body>
</html>
Output