x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
5
<p id="msg"></p>
6
<p>The <code>Math.round()</code> function returns the value of the given number rounded to the nearest integer.</p>
7
8
<script>
9
  document.getElementById("msg").innerHTML = Math.round(53.478);
10
</script>