how to make a range button work in js code example Example: javascript get html slider value var x = document.getElementById("myRange").value