JSFiddle - React, Tailwind, and code Playground

by bladnman

JavaScript

function NearestMultiple(i, j) {
    alert(Math.ceil(i/ j) * j);
}

NearestMultiple(1007, 250);