round down a number in js code example
Example 1: rounding off in javascript
var avg=10.55;
console.log(Math.round(avg)); //Prints 11
Example 2: javascript round down
Math.floor(x);
var avg=10.55;
console.log(Math.round(avg)); //Prints 11
Math.floor(x);