round with unit in javascript code example Example: math.round in javascript let xo =7.45; xo = Math.round(xo); // output = 7;