how do i round up something to the closest int in javascript code example Example: javascript round to nearest 10 var rounded = Math.round(number / 10) * 10