Math methods in JavaScript

There are many methods which used in JavaScript math methods:

abs(), ceil(), floor(), max(), min(), pow(), random(), sqrt(), round(), log(), cos(), asine, etc

Ex.

2 to the power of 4 is: <span id="id1"></span>    

<script>    

document.getElementById('id1').innerHTML=Math.pow(2,4);    

</script>

Powered  by Codersarts