JavaScript | Math.round( ) function

The Math.round() function in JavaScript is used to round the number passed as parameter to its nearest integer.
Syntax

Math.round(value)