<input id="range" type="range" min="1000" max="10000">
<p></p>
const input = document.querySelector('#range');
const log = document.querySelector('p');
input.addEventListener('input', updateValue);
function updateValue(e) {
log.textContent = e.target.value;
}