Table of contents Home page
Execute this code
var r = prompt("Which number do you want to round to the nearest integer (tie-breaking rule: round half up)?") if (r != null && !isNaN(r)) { alert("The rounded value is " + Math.round(r)) }