HTML range input value off by 1
03:00 30 Jan 2026

Using the code:

const input = document.querySelector("#Tester");
console.log(input);
console.log(input.value);

24

It outputs:


24

Why is the input value 24 and not 25?

Removing the min property makes it correctly return 25.

javascript html range