I have such a problem, I want to round the given numbers to the nearest high number that is divisible by 5. For example:
let num = 12;
function round5(arg) {
console.log(Math.round(arg / 5) * 5)
}
round5(num)
In this case, I want the result to be 15. What would be the best solution for this? Thanks in advance.