Array.from() method creates and returns an array object from any iterable object.
The basic idea is to get the upper and lower values for the range as well as steps to create the sequence.
HTML
Let’s add the 3 range sliders using HTML and also add one more div to display the sequence.
In the HTML above, I have also added onchange function call for each range slider. Let’s add that function using JavaScript.
JavaScript
Now, finally let’s add the code to create the sequence using all those values.
The Sequence generator function code is from MDN.
array examples functions JS Methods range