<script> function round(x) { return Math.ceil(x / 5) * 5; } var n = 34; console.log(round(n)); </script>