Javascript examples for Math:Quiz
Round "5.3" to the nearest integer, and display it.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = Math.round(5.3); </script>//from w ww . jav a 2s. c o m </body> </html>