how to round number in js

JavaScript
Math.round(2.5);
 
Source

Also in JavaScript: