C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...








Math Object - Example



This article explains about JavaScript math Object





Let's have a look at simple example that deals working with some of the math object 's functions.


<html>

<head>

<h2>Math Object demo</h2>

<script type="text/javascript">

alert("Absolute: "+ Math.abs(-2))

alert("PI: " + Math.PI)

alert("cos: " + Math.cos(0) )

</script>

</head>

<body></body>

</html>



In a similer mannar we can work with other functions of the math object too.





Next Chapter: Understanding Events


Previous Chapter: What do you mean by JavaScript?


Tutorial Index




Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
web conferencing

Contact Us    Privacy Policy    Terms Of Use