Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Math in Examples of Javascript 1
549 Views
Example
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>string</title>
        </head>
        <body>
            
            <script>
              document.write(Math.abs(-12.3)+"<br>");
              document.write(Math.round(12.3)+"<br>");
              document.write(Math.ceil(12.3)+"<br>");
               document.write(Math.floor(12.3)+"<br>");
                document.write(Math.max(1,2,3,4)+"<br>");
                document.write(Math.min(2,5,7,4,8)+"<br>");
                document.write(Math.sqrt(16)+"<br>");
                document.write(Math.pow(2,4)+"<br>");
                document.write(Math.PI+"<br>");
                document.write(Math.random()*100+"<br>");
            </script>
            
        </body>
    </html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details