JSFiddle - React, Tailwind, and code Playground

by Alexandru Gatea

HTML

<input id="input" type="range" min="0" value="0" max="6" step="1">
<div id="output"></div>

JavaScript

var values = [1,3,5,10,20,50,100];

var input = document.getElementById('input'),
   output = document.getElementById('output');
input.oninput = function(){
    output.innerHTML = values[this.value];
};
/* input.oninput(); */