how to round up a number to the nearest multiple of 90 in javascript code example
Example 1: javascript round to nearest 10
var rounded = Math.round(number / 10) * 10
Example 2: rounding up a number so that it is divisible by 5 javascript
const roundToNearest5 = x => Math.round(x/5)*5