5 out of 10

Move the slider to refresh the output.

Important JavaScript

range.addEventListener("input", function () {
  output.textContent = range.value + " out of 10";
});