JSFiddle - React, Tailwind, and code Playground

HTML

<input type='range' min='0' max='9999999' id='mySlider'>

JavaScript

var slider = document.getElementById('mySlider');

// This does not work as intended.
// It erringly moves the slider to the beginning.
slider.value = 5000000;

// This does, however. It moves the pin to the right side.
// slider.value = 9999999;