[Solved] Set background color to value of range input [closed]

What you want to do is add an onchange part to your inputs to handle when the user changes the values of your input sliders. This is what it would look like: <input id=”red” name=”red” type=”range” min=”0″ max=”255″ step=”1″ value=”128″ onchange=”changeColor()”></input> <label for=”red”>red</label> <br> <input id=”green” name=”green” type=”range” min=”0″ max=”255″ step=”1″ value=”128″ onchange=”changeColor()”></input> <label for=”green”>green</label> … Read more

[Solved] A closed range can never be empty, Why?

A Closed Range contains both its lower bound and its upper bound. So even if you wrote: let someRange = 0…0 It still contains one element: 0. How would you attempt write an empty range? let someRange = … ?? That doesn’t make much sense, and if you specify either the upper or lower bound, … Read more